nostalgia/deps/imgui/CMakeLists.txt

35 lines
540 B
CMake

add_library(
imgui-glfw OBJECT
src/imgui_impl_glfw.cpp
src/imgui_impl_opengl3.cpp
)
find_package(glfw3 REQUIRED)
find_package(imgui REQUIRED)
target_link_libraries(
imgui-glfw PUBLIC
${OPENGL_gl_LIBRARY}
glfw::glfw
imgui::imgui
)
if(NOT MSVC)
target_compile_options(
imgui-glfw PRIVATE
-Wno-all
-Wno-extra
-Wno-old-style-cast
-Wno-deprecated-declarations
-Wno-null-dereference
)
endif()
install(
TARGETS
imgui-glfw
DESTINATION
LIBRARY DESTINATION lib/nostalgia
ARCHIVE DESTINATION lib/nostalgia
)