We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71458b2 commit 063af3eCopy full SHA for 063af3e
1 file changed
CMakeLists.txt
@@ -21,6 +21,8 @@ option( OPTIONAL_LITE_OPT_SELECT_NONSTD "Select nonstd::optional" OFF )
21
22
project( optional_lite LANGUAGES CXX )
23
24
+include( GNUInstallDirs )
25
+
26
set( package_name "optional-lite" )
27
set( include_source_dir "${PROJECT_SOURCE_DIR}/include" )
28
@@ -32,6 +34,13 @@ add_library(
32
34
target_include_directories(
33
35
${package_name} INTERFACE "$<BUILD_INTERFACE:${include_source_dir}>" )
36
37
+# Installation:
38
39
+install(
40
+ DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
41
42
+# If requested, build and perform tests, build examples:
43
44
enable_testing()
45
46
if ( OPTIONAL_LITE_OPT_BUILD_TESTS )
0 commit comments