2024-03-11 21:08:23 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
|
|
|
project(imgui_cimgui)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
2024-03-12 19:09:01 +01:00
|
|
|
if (IMHEX_STATIC_LINK_PLUGINS)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2024-03-11 21:08:23 +01:00
|
|
|
if (NOT IMHEX_EXTERNAL_PLUGIN_BUILD)
|
2024-03-12 19:09:01 +01:00
|
|
|
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)
|
2024-03-12 19:09:01 +01:00
|
|
|
|
|
|
|
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()
|
|
|
|
|