forked from alexdevonport/pfaces-pirk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (30 loc) · 1.06 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
cmake_minimum_required(VERSION 3.6)
# Name of the project
project(pFaces-PIRK)
# Include CMake configs for pFaces
if("$ENV{PFACES_SDK_ROOT}" STREQUAL "")
message(FATAL_ERROR "Please make sure pFaces is installed correctly.")
else()
include($ENV{PFACES_SDK_ROOT}/pfaces_kernel.cmake)
endif()
# Kernel name and its sources
set(PFACES_KERNEL pirk)
set(PFACES_KERNEL_SOURCES
${PROJECT_SOURCE_DIR}/kernel/pirk_io.cpp
${PROJECT_SOURCE_DIR}/kernel/pirk_utils.cpp
${PROJECT_SOURCE_DIR}/kernel/pirk_ctmm.cpp
${PROJECT_SOURCE_DIR}/kernel/pirk_growthbound.cpp
${PROJECT_SOURCE_DIR}/kernel/pirk_montecarlo.cpp
${PROJECT_SOURCE_DIR}/kernel/pirk_montecarlo_hd.cpp
${PROJECT_SOURCE_DIR}/kernel/pirk.cpp
)
set(PFACES_KERNEL_OUT_PATH "${PROJECT_SOURCE_DIR}/kernel-pack")
# Generic CMake instructions to make the kernel
add_library(${PFACES_KERNEL} SHARED
${PFACES_KERNEL_SOURCES}
)
target_include_directories(${PFACES_KERNEL} PUBLIC
${PROJECT_SOURCE_DIR}/kernel
)
# Include link configs for the kernel.
include($ENV{PFACES_SDK_ROOT}/pfaces_link.cmake)