-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (35 loc) · 1.53 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required (VERSION 3.1)
project (tetra-creative)
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
set (CMAKE_MODULE_PATH cmake)
set (GCC_COMPILE_FLAGS "-std=c++1z")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COMPILE_FLAGS}")
set (ASSET_ROOT ${CMAKE_BINARY_DIR}/assets)
configure_file ("./metasrc/AssetRoot.h.in" "./lib/inc/AssetRoot.h")
find_package (OpenGL REQUIRED)
find_package (GLEW REQUIRED)
find_package (SDL2 REQUIRED)
find_package (Boost REQUIRED)
include_directories(${GLEW_INCLUDE_DIRS})
include_directories(${SDL2_INCLUDE_DIR})
include_directories(${Boost_Include_Dirs})
include_directories(lib/inc)
include_directories(dependencies/glm)
add_subdirectory (lib)
add_executable(firstTriangle sketches/firstTriangle.cpp)
target_link_libraries(firstTriangle tcCore)
target_link_libraries(firstTriangle ${OPENGL_LIBRARIES})
target_link_libraries(firstTriangle ${SDL2_LIBRARY})
target_link_libraries(firstTriangle ${GLEW_LIBRARY})
add_executable(offsetTriangle ./sketches/offsetTriangle.cpp)
target_link_libraries(offsetTriangle tcCore)
target_link_libraries(offsetTriangle ${OPENGL_LIBRARIES})
target_link_libraries(offsetTriangle ${SDL2_LIBRARY})
target_link_libraries(offsetTriangle ${GLEW_LIBRARY})
add_executable(lissajous ./sketches/lissajous.cpp)
target_link_libraries(lissajous tcCore)
target_link_libraries(lissajous ${OPENGL_LIBRARIES})
target_link_libraries(lissajous ${SDL2_LIBRARY})
target_link_libraries(lissajous ${GLEW_LIBRARY})
add_executable(actionlist ./sketches/actionlist.cpp)
target_link_libraries(actionlist tcCore)