-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (32 loc) · 989 Bytes
/
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
cmake_minimum_required(VERSION 2.8)
project(Novo)
list(APPEND CMAKE_CXX_FLAGS "-std=c++11")
find_package(Boost COMPONENTS system thread filesystem program_options REQUIRED)
find_package(OpenGL REQUIRED)
find_package(glfw REQUIRED)
#find_package(GLEW REQUIRED)
find_package(GLM REQUIRED)
find_package(glbinding REQUIRED)
include_directories(
${Boost_INCLUDE_DIRS}
${OPENGL_INCLUDE_DIRS}
${GLFW_INCLUDE_PATH}
# ${GLEW_INCLUDE_DIRS}
${GLBINDING_INCLUDES}
${GLM_INCLUDE_DIRS}
)
list(APPEND LIBS
${Boost_LIBRARIES}
${GLFW_LIBRARY}
# ${GLEW_LIBRARY}
${GLBINDING_LIBRARY}
${OPENGL_LIBRARIES}
)
string(TOUPPER ${CMAKE_SYSTEM_NAME} OS_NAME)
configure_file("${CMAKE_SOURCE_DIR}/src/novo/config.h.in" "${CMAKE_SOURCE_DIR}/src/novo/config.h")
include_directories(src)
file(GLOB_RECURSE SOURCES src/*.h src/*.cpp)
file(GLOB_RECURSE SHADERS res/shaders/*)
# Shaders here only for listing in qtCreator
add_executable(novo ${SOURCES} ${SHADERS})
target_link_libraries(novo ${LIBS})