MCalc/external/CMakeLists.txt

33 lines
704 B
CMake
Raw Permalink Normal View History

2023-08-19 15:23:23 +00:00
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
add_subdirectory(glfw-3.3.8 EXCLUDE_FROM_ALL)
add_subdirectory(nativefiledialog-extended-1.1.0 EXCLUDE_FROM_ALL)
add_library(ext STATIC
glad/glad.c
imgui-docking/imgui.cpp
imgui-docking/imgui_draw.cpp
imgui-docking/imgui_widgets.cpp
imgui-docking/imgui_tables.cpp
imgui-docking/imgui_demo.cpp
imgui-docking/imgui_stdlib.cpp
imgui-docking/backends/imgui_impl_glfw.cpp
imgui-docking/backends/imgui_impl_opengl3.cpp
)
target_include_directories(ext PUBLIC
imgui-docking
ImGuiFileDialog
glad
glfw-3.3.8/include
)
target_link_libraries(ext PUBLIC
glfw
${GLFW_LIBRARIES}
nfd
)
set_target_properties(ext PROPERTIES LINKER_LANGUAGE CXX)