git.haldean.org ana / 36e05f4
windows support Haldean Brown 1 year, 8 months ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
11 cmake_policy(VERSION 3.7)
22 project(ana VERSION 0.1.0 LANGUAGES CXX)
33
4 find_package(glm REQUIRED)
54 find_package(SDL2 REQUIRED)
65 find_package(GLEW REQUIRED)
76
87 set(CMAKE_CXX_FLAGS "-Wall -Werror -DIMGUI_IMPL_OPENGL_LOADER_GLEW")
98
10 include_directories(lib/imgui lib/imgui/examples SDL2::SDL2)
9 include_directories(lib/imgui lib/imgui/examples SDL2::SDL2 ${SDL2_INCLUDE_DIRS} lib/glm)
1110
1211 add_executable(ana
1312 src/ana.cpp
2221 lib/imgui/examples/imgui_impl_opengl3.cpp
2322 )
2423
25 target_link_libraries(ana ${GLM_LIBRARIES} SDL2::SDL2 ${GLEW_LIBRARIES} GL)
24 target_link_libraries(ana SDL2::SDL2 ${SDL2_LIBRARIES} ${GLEW_LIBRARIES} GL)