File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,17 @@ project(subprocess VERSION 0.0.1 LANGUAGES CXX)
4
4
set (CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard to use" )
5
5
option (EXPORT_COMPILE_COMMANDS "create clang compile database" ON )
6
6
option (SUBPROCESS_TESTS "enable subprocess tests" OFF )
7
+ option (SUBPROCESS_INSTALL "enable subprocess install" OFF )
7
8
8
9
find_package (Threads REQUIRED)
9
10
10
11
add_library (subprocess INTERFACE )
11
12
target_link_libraries (subprocess INTERFACE Threads::Threads)
12
13
target_include_directories (subprocess INTERFACE . )
13
- install (FILES subprocess.hpp DESTINATION include /cpp-subprocess/)
14
+
15
+ if (SUBPROCESS_INSTALL)
16
+ install (FILES subprocess.hpp DESTINATION include /cpp-subprocess/)
17
+ endif ()
14
18
15
19
if (SUBPROCESS_TESTS)
16
20
include (CTest)
You can’t perform that action at this time.
0 commit comments