-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
44 lines (29 loc) · 1.29 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
cmake_minimum_required(VERSION 2.6)
project(GPUPathTracing)
set(PROJECT_BRIEF "GPUPathTracing")
set(CMAKE_BUILD_TYPE DEBUG)
set(GCC_COMPILE_FLAGS "-std=c++11 -Wall -O3 -g")
set(GCC_LINK_FLAGS "")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COMPILE_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_LINK_FLAGS}")
#ASSIMP
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/assimp-3.3.1/include)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/assimp-3.3.1/build/code/Release)
#DEVIL
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/DevIL/include)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/DevIL)
#GLM
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/glm)
#GLFW
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/glfw-3.2.1/include)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/glfw-3.2.1/build/src/Release)
#GLEW
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/glew-2.0.0/include)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/glew-2.0.0/lib/Release/x64)
add_definitions(-DGLEW_STATIC)
#GLComputeHelper
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/GLComputeHelper/src)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/ext/GLComputeHelper/build/src/Release)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
add_subdirectory(src)
add_subdirectory(test)