Add tool infrastructure

This commit is contained in:
Jonathan Müller 2017-04-08 10:52:54 +02:00
commit d66d6d26af
6 changed files with 51 additions and 2 deletions

1
external/cxxopts vendored Submodule

@ -0,0 +1 @@
Subproject commit 1be5f10daf6f08296eff399e82aa94d16800ef4e

View file

@ -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
#