-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (36 loc) · 868 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
45 lines (36 loc) · 868 Bytes
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
cmake_minimum_required(VERSION 3.20)
project(rix
VERSION 0.5.0
DESCRIPTION "Unified Rix facade for Vix C++ projects"
LANGUAGES CXX
)
option(RIX_BUILD_EXAMPLES "Build Rix examples" ON)
option(RIX_BUILD_TESTS "Build Rix tests" ON)
include(${CMAKE_CURRENT_SOURCE_DIR}/.vix/vix_deps.cmake OPTIONAL)
add_library(rix INTERFACE)
add_library(rix::rix ALIAS rix)
target_compile_features(rix
INTERFACE
cxx_std_20
)
target_include_directories(rix
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
target_link_libraries(rix
INTERFACE
rix::csv
rix::debug
rix::auth
rix::pdf
)
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
if(RIX_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if(RIX_BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
endif()