1
0
mirror of synced 2024-12-12 16:01:06 +01:00
ImHex/lib/third_party/imgui/cimgui/CMakeLists.txt

30 lines
905 B
CMake
Raw Normal View History

2024-03-11 21:08:23 +01:00
cmake_minimum_required(VERSION 3.16)
project(imgui_cimgui)
set(CMAKE_CXX_STANDARD 17)
if (IMHEX_STATIC_LINK_PLUGINS)
return()
endif()
2024-03-11 21:08:23 +01:00
if (NOT IMHEX_EXTERNAL_PLUGIN_BUILD)
add_library(imgui_cimgui ${LIBRARY_TYPE}
2024-03-11 21:08:23 +01:00
source/cimgui.cpp
)
target_include_directories(imgui_cimgui PUBLIC
include
)
target_link_libraries(imgui_cimgui PRIVATE imgui_includes libimhex)
set_target_properties(imgui_cimgui PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set_target_properties(imgui_cimgui PROPERTIES OUTPUT_NAME "cimgui")
set_target_properties(imgui_cimgui PROPERTIES PREFIX "")
add_dependencies(imhex_all imgui_cimgui)
install(FILES "$<TARGET_FILE:imgui_cimgui>" DESTINATION "${CMAKE_INSTALL_LIBDIR}" PERMISSIONS ${LIBRARY_PERMISSIONS})
set_target_properties(imgui_cimgui PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
2024-03-11 21:08:23 +01:00
endif()