mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-04 20:36:20 -04:00
Move header into subdir
This commit is contained in:
parent
d02cdeedc2
commit
cbb57fff5f
@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(subprocess VERSION 0.0.1 LANGUAGES CXX)
|
||||
project(subprocess VERSION 0.1.0 LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard to use")
|
||||
option(EXPORT_COMPILE_COMMANDS "create clang compile database" ON)
|
||||
@ -10,7 +10,12 @@ find_package(Threads REQUIRED)
|
||||
|
||||
add_library(subprocess INTERFACE)
|
||||
target_link_libraries(subprocess INTERFACE Threads::Threads)
|
||||
target_include_directories(subprocess INTERFACE . )
|
||||
target_sources(subprocess PUBLIC
|
||||
FILE_SET HEADERS
|
||||
FILES
|
||||
subprocess/subprocess.hpp
|
||||
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/
|
||||
)
|
||||
|
||||
if(SUBPROCESS_INSTALL)
|
||||
install(FILES subprocess.hpp DESTINATION include/cpp-subprocess/)
|
||||
|
0
subprocess.hpp → cpp-subprocess/subprocess.hpp
Executable file → Normal file
0
subprocess.hpp → cpp-subprocess/subprocess.hpp
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user