cmake hassle
This commit is contained in:
parent
15127c5122
commit
407e4fb474
10 changed files with 115 additions and 110 deletions
25
Externals/FindImGui.cmake
vendored
Normal file
25
Externals/FindImGui.cmake
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
project(ImGui)
|
||||
|
||||
|
||||
set(${PROJECT_NAME}_SOURCES
|
||||
${IMGUI_SRC_DIR}/imgui.cpp
|
||||
${IMGUI_SRC_DIR}/imgui_draw.cpp
|
||||
${IMGUI_SRC_DIR}/imgui_tables.cpp
|
||||
${IMGUI_SRC_DIR}/imgui_widgets.cpp
|
||||
${IMGUI_SRC_DIR}/imgui_demo.cpp
|
||||
|
||||
${IMGUI_SRC_DIR}/backends/imgui_impl_glfw.cpp
|
||||
${IMGUI_SRC_DIR}/backends/imgui_impl_opengl3.cpp
|
||||
)
|
||||
|
||||
set(${PROJECT_NAME}_INCLUDES
|
||||
${IMGUI_SRC_DIR}
|
||||
${IMGUI_SRC_DIR}/backends/
|
||||
)
|
||||
|
||||
add_library(${PROJECT_NAME} STATIC ${${PROJECT_NAME}_SOURCES})
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${${PROJECT_NAME}_INCLUDES})
|
||||
|
||||
#include_directories(${PROJECT_NAME} ././glfw/include)
|
||||
|
||||
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
|
||||
Loading…
Add table
Add a link
Reference in a new issue