File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ file(GLOB CLI_headers "${CMAKE_CURRENT_SOURCE_DIR}/include/CLI/*")
5353# To see in IDE, must be listed for target
5454add_library (CLI11 INTERFACE )
5555target_include_directories (CLI11 INTERFACE "${CMAKE_CURRENT_SOURCE_DIR} /include" )
56+ if (CUR_PROJ)
57+ install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /include /CLI DESTINATION include )
58+ endif ()
5659
5760# Single file test
5861find_package (PythonInterp)
@@ -73,7 +76,9 @@ if(CLI_SINGLE_FILE)
7376 DEPENDS "${CMAKE_CURRENT_BINARY_DIR} /include/CLI11.hpp" )
7477 set_target_properties (generate_cli_single_file
7578 PROPERTIES FOLDER "Scripts" )
76-
79+ if (CUR_PROJ)
80+ install (FILES ${CMAKE_CURRENT_BINARY_DIR} /include /CLI11.hpp DESTINATION include )
81+ endif ()
7782 add_library (CLI11_SINGLE INTERFACE )
7883 target_link_libraries (CLI11_SINGLE INTERFACE CLI11)
7984 add_dependencies (CLI11_SINGLE generate_cli_single_file)
@@ -93,4 +98,3 @@ option(CLI_EXAMPLES "Build the examples" ${CUR_PROJ})
9398if (CLI_EXAMPLES)
9499 add_subdirectory (examples)
95100endif ()
96-
You can’t perform that action at this time.
0 commit comments