forked from KhronosGroup/ANARI-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (39 loc) · 1.08 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
45
46
47
48
49
50
51
## Copyright 2022-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0
## Establish project ##
project(helium LANGUAGES CXX)
## Build library target ##
project_add_library(STATIC)
project_sources(PRIVATE
BaseDevice.cpp
BaseFrame.cpp
BaseGlobalDeviceState.cpp
BaseObject.cpp
array/Array.cpp
array/Array1D.cpp
array/Array2D.cpp
array/Array3D.cpp
array/ObjectArray.cpp
utility/DeferredCommitBuffer.cpp
utility/ParameterizedObject.cpp
utility/TimeStamp.cpp
)
project_include_directories(
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/..>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/anari/backend>
)
project_link_libraries(PUBLIC anari)
## Install library + targets ##
install(TARGETS ${PROJECT_NAME}
EXPORT anari_Exports
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/anari/backend
FILES_MATCHING
PATTERN *.h
)