Add tool infrastructure
This commit is contained in:
parent
a8e2676f36
commit
d66d6d26af
6 changed files with 51 additions and 2 deletions
1
external/cxxopts
vendored
Submodule
1
external/cxxopts
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 1be5f10daf6f08296eff399e82aa94d16800ef4e
|
||||
11
external/external.cmake
vendored
11
external/external.cmake
vendored
|
|
@ -38,6 +38,17 @@ target_include_directories(_cppast_tiny_process PUBLIC ${tiny_process_dir})
|
|||
target_link_libraries(_cppast_tiny_process PUBLIC Threads::Threads)
|
||||
set_target_properties(_cppast_tiny_process PROPERTIES CXX_STANDARD 11)
|
||||
|
||||
#
|
||||
# install cxxopts, if needed
|
||||
#
|
||||
if(build_tool)
|
||||
message(STATUS "Installing cxxopts via submodule")
|
||||
execute_process(COMMAND git submodule update --init -- external/cxxopts
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/external/cxxopts EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
|
||||
#
|
||||
# install libclang
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue