1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-30 20:53:52 +00:00
CLI11/examples/CMakeLists.txt
Henry Fredrick Schreiner 44f43bd621 Adding clang tidy details
2017-05-31 10:44:09 -04:00

16 lines
355 B
CMake

function(add_cli_exe T)
add_executable(${T} ${ARGN} ${CLI_headers})
target_link_libraries(${T} PUBLIC CLI11)
if(CLANG_TIDY_EXE)
set_target_properties(
${T} PROPERTIES
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
)
endif()
endfunction()
add_cli_exe(try try.cpp)
add_cli_exe(try1 try1.cpp)
add_cli_exe(try2 try2.cpp)