1
0
mirror of synced 2024-11-29 01:44:31 +01:00
ImHex/external/ImGui/CMakeLists.txt

48 lines
1.2 KiB
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.16)
project(imgui)
set(CMAKE_CXX_STANDARD 17)
find_package(PkgConfig REQUIRED)
find_package(Freetype REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
add_library(imgui STATIC
source/imgui.cpp
source/imgui_demo.cpp
source/imgui_draw.cpp
source/imgui_freetype.cpp
source/imgui_impl_glfw.cpp
source/imgui_impl_opengl3.cpp
source/imgui_tables.cpp
source/imgui_widgets.cpp
2021-03-02 13:48:23 +01:00
source/TextEditor.cpp
2021-03-02 13:48:23 +01:00
source/imgui_imhex_extensions.cpp
2021-03-02 13:48:23 +01:00
source/imnodes.cpp
2021-02-24 22:42:26 +01:00
2021-03-02 13:48:23 +01:00
source/implot.cpp
source/implot_items.cpp
source/implot_demo.cpp
2021-02-24 22:42:26 +01:00
fonts/fontawesome_font.c
2021-08-04 14:01:24 +02:00
fonts/codicons_font.c
2021-08-31 15:22:00 +02:00
fonts/unifont_font.c
)
add_compile_definitions(IMGUI_IMPL_OPENGL_LOADER_GLAD)
2021-02-24 22:42:26 +01:00
target_include_directories(imgui PUBLIC include fonts ${FREETYPE_INCLUDE_DIRS} ${GLFW_INCLUDE_DIRS})
2021-08-25 11:46:40 +02:00
target_link_directories(imgui PUBLIC ${GLFW_LIBRARY_DIRS})
if (WIN32)
2021-08-21 15:03:44 +02:00
target_link_libraries(imgui Freetype::Freetype glfw3 opengl32.lib)
elseif (UNIX)
target_link_libraries(imgui Freetype::Freetype glfw GL)
endif()