-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
28 lines (21 loc) · 980 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
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project("PrecomputedGI")
IF(APPLE)
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++14")
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
ENDIF()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
add_subdirectory(external/embree)
add_subdirectory(external/dwSampleFramework)
set(XATLAS_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/external/xatlas")
set(EMBREE_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/external/embree/include/embree3")
set(HOSEKSKY_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/external/HosekSky")
set(THREADPOOL_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/external/dwThreadPool/include")
include_directories("${DW_SAMPLE_FRAMEWORK_INCLUDES}"
"${XATLAS_INCLUDE_DIRS}"
"${EMBREE_INCLUDE_DIRS}"
"${HOSEKSKY_INCLUDE_DIRS}"
"${THREADPOOL_INCLUDE_DIRS}")
add_subdirectory(src)