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 23:17:49 +01:00
|
|
|
add_library(imgui_cimgui OBJECT
|
2024-03-11 21:08:23 +01:00
|
|
|
source/cimgui.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(imgui_cimgui PUBLIC
|
|
|
|
include
|
|
|
|
)
|
|
|
|
|
2024-03-12 23:17:49 +01:00
|
|
|
target_link_libraries(imgui_cimgui PRIVATE imgui_includes)
|
2024-03-11 21:08:23 +01:00
|
|
|
add_dependencies(imhex_all imgui_cimgui)
|
|
|
|
endif()
|
|
|
|
|