-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
48 lines (39 loc) · 1.54 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
# Author: Younguk Kim (bluekyu)
cmake_minimum_required(VERSION 3.12)
project(rpcpp_samples_project
DESCRIPTION "Samples of Render Pipeline C++"
HOMEPAGE_URL "https://github.com/bluekyu/rpcpp_samples"
LANGUAGES CXX
)
# === configure ====================================================================================
option(${PROJECT_NAME}_ENABLE_RTTI "Enable Run-Time Type Information" OFF)
set_property(GLOBAL PROPERTY USE_FOLDERS ON) # Project Grouping
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# check package
if(NOT TARGET render_pipeline)
find_package(render_pipeline CONFIG REQUIRED)
endif()
if(WIN32)
include(windows_utils)
endif()
# subdirectory
set(rpcpp_samples_list
"nvidia_flex"
"panda3d_samples"
"render_pipeline_samples"
"rpcpp_samples"
"snippets"
)
foreach(sample_id ${rpcpp_samples_list})
option(rpcpp_samples_BUILD_${sample_id} "Enable to build '${sample_id}'" OFF)
if(rpcpp_samples_BUILD_${sample_id})
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/${sample_id}")
endif()
endforeach()
# ==================================================================================================
# === install ======================================================================================
install(DIRECTORY "${PROJECT_SOURCE_DIR}/resources/models"
DESTINATION "share/rpcpp_samples"
)
install(DIRECTORY "${PROJECT_SOURCE_DIR}/resources/etc/" DESTINATION "etc")
# ==================================================================================================