-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (25 loc) · 1.13 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
cmake_minimum_required(VERSION 3.5)
project(HelloEmbree)
# Setting Intel Thread Building Blocks
#set(TBB_INSTALL_DIR "/home/denispavlov/Software/tbb-2019_U2")
#set(TBB_INCLUDE "$TBB_INSTALL_DIR/include")
#set(TBB_LIBRARY_RELEASE "${TBB_INSTALL_DIR}/build/linux_intel64_gcc_cc7_libc2.27_kernel4.15.0_release")
#set(TBB_LIBRARY_DEBUG "${TBB_INSTALL_DIR}/build/linux_intel64_gcc_cc7_libc2.27_kernel4.15.0_debug")
# Setting Intel Embree
set(EMBREE_INSTALL_DIR "/home/yury/mashgraph/cmcg/lib/embree-3.2.4.x86_64.linux")
set(EMBREE_INCLUDE "${EMBREE_INSTALL_DIR}/include")
set(EMBREE_LIBRARY "${EMBREE_INSTALL_DIR}/lib")
include_directories(${TBB_INCLUDE} ${EMBREE_INCLUDE})
link_directories(${TBB_LIBRARY_RELEASE} ${EMBREE_LIBRARY})
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -fopenmp")
#set(CORE_SOURCE )
set(SOURCE_FILES main.cpp
vector3.h
ray.h
bxdf.h
primitive.h
utils.h)
add_executable(HelloEmbree ${SOURCE_FILES} ${CORE_SOURCE})
target_link_libraries(HelloEmbree embree3)
#target_link_libraries(HelloEmbree tbb embree3)