-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (21 loc) · 806 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (21 loc) · 806 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
cmake_minimum_required(VERSION 3.8)
project(rezsem VERSION 1.0.0 LANGUAGES CXX)
option(REZSEM_BUILD_TESTS OFF)
include(GNUInstallDirs)
add_library(rezsem INTERFACE)
add_library(rezsem::rezsem ALIAS rezsem)
target_compile_features(rezsem INTERFACE cxx_std_17)
target_include_directories(rezsem INTERFACE
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>)
if(REZSEM_BUILD_TESTS)
add_subdirectory(tests)
endif()
install(TARGETS rezsem EXPORT rezsemConfig)
install(EXPORT rezsemConfig
NAMESPACE rezsem::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/rezsem)
install(FILES ${CMAKE_CURRENT_LIST_DIR}/include/rezsem/rezsem.hpp
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/rezsem)
export(EXPORT rezsemConfig
NAMESPACE rezsem::)