1
0
mirror of synced 2024-12-15 09:11:15 +01:00
ImHex/lib/third_party/imgui/imgui/CMakeLists.txt
2024-02-24 15:06:10 +01:00

34 lines
1.0 KiB
CMake

cmake_minimum_required(VERSION 3.16)
# https://github.com/ocornut/imgui
project(imgui_imgui)
set(CMAKE_CXX_STANDARD 17)
if (NOT IMHEX_EXTERNAL_PLUGIN_BUILD)
add_library(imgui_imgui OBJECT
source/imgui.cpp
source/imgui_demo.cpp
source/imgui_draw.cpp
source/imgui_tables.cpp
source/imgui_widgets.cpp
source/misc/freetype/imgui_freetype.cpp
)
target_include_directories(imgui_imgui PUBLIC
include
include/misc/freetype
)
target_compile_options(imgui_imgui PRIVATE -Wno-unknown-warning-option)
find_package(Freetype REQUIRED)
target_include_directories(imgui_imgui PUBLIC ${FREETYPE_INCLUDE_DIRS})
target_link_directories(imgui_imgui PUBLIC ${FREETYPE_LIBRARY_DIRS})
target_link_libraries(imgui_imgui PUBLIC ${FREETYPE_LIBRARIES})
endif()
add_library(imgui_includes INTERFACE)
target_include_directories(imgui_includes INTERFACE include)
target_include_directories(imgui_all_includes INTERFACE include include/misc/freetype)