-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
35 lines (29 loc) · 1.01 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 to the project
project(pFaces-AMYTISS)
# 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()
# Libraries needed fot this kernel: SymbolicCPP
add_subdirectory(${PROJECT_SOURCE_DIR}/kernel/symboliccpp)
# Kernel name and its sources
set(PFACES_KERNEL amytiss)
set(PFACES_KERNEL_SOURCES
${PROJECT_SOURCE_DIR}/kernel/amytissPDFs.cpp
${PROJECT_SOURCE_DIR}/kernel/amytiss.cpp
)
set(PFACES_KERNEL_OUT_PATH "${PROJECT_SOURCE_DIR}/kernel-pack")
# Add the kerel as shared lib
add_library(${PFACES_KERNEL} SHARED
${PFACES_KERNEL_SOURCES}
)
target_include_directories(${PFACES_KERNEL} PUBLIC
${PROJECT_SOURCE_DIR}/kernel
${PROJECT_SOURCE_DIR}/kernel/symboliccpp/include
)
target_link_libraries(${PFACES_KERNEL} SymbolicCpp)
# Include link configs for the kernel.
include($ENV{PFACES_SDK_ROOT}/pfaces_link.cmake)