-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
21 lines (16 loc) · 945 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 3.17)
project(more_clap_extensions LANGUAGES C CXX VERSION 1.0.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_subdirectory(clap EXCLUDE_FROM_ALL)
add_library(more_clap_extensions INTERFACE)
target_include_directories(more_clap_extensions INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
target_include_directories(more_clap_extensions INTERFACE
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/clap/include>
$<INSTALL_INTERFACE:clap/include>)
install(DIRECTORY include/more_clap_extensions DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
install(TARGETS more_clap_extensions EXPORT more_clap_extensions INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
install(EXPORT more_clap_extensions DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/more_clap_extensions" FILE "more_clap_extensions-config.cmake")