mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 20:23:55 +00:00
Fixing for IDE builds
This commit is contained in:
parent
ade78c5842
commit
81f58c130a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
a.out*
|
a.out*
|
||||||
/build*
|
/*build*
|
||||||
|
@ -26,6 +26,7 @@ add_library(CLI INTERFACE)
|
|||||||
target_include_directories(CLI INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
target_include_directories(CLI INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||||
|
|
||||||
file(GLOB CLI_headers "${CMAKE_CURRENT_SOURCE_DIR}/include/CLI/*")
|
file(GLOB CLI_headers "${CMAKE_CURRENT_SOURCE_DIR}/include/CLI/*")
|
||||||
|
# To see in IDE, must be listed for target
|
||||||
|
|
||||||
# Single file test
|
# Single file test
|
||||||
option(CLI_SINGLE_FILE "Generate a single header file (and test)" ${CUR_PROJ})
|
option(CLI_SINGLE_FILE "Generate a single header file (and test)" ${CUR_PROJ})
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
add_executable(try try.cpp)
|
add_executable(try try.cpp ${CLI_headers})
|
||||||
target_link_libraries(try PUBLIC CLI)
|
target_link_libraries(try PUBLIC CLI)
|
||||||
|
|
||||||
add_executable(try1 try1.cpp)
|
add_executable(try1 try1.cpp ${CLI_headers})
|
||||||
target_link_libraries(try1 PUBLIC CLI)
|
target_link_libraries(try1 PUBLIC CLI)
|
||||||
|
|
||||||
add_executable(try2 try2.cpp)
|
add_executable(try2 try2.cpp ${CLI_headers})
|
||||||
target_link_libraries(try2 PUBLIC CLI)
|
target_link_libraries(try2 PUBLIC CLI)
|
||||||
|
@ -14,7 +14,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|||||||
|
|
||||||
foreach(T ${CLI_TESTS})
|
foreach(T ${CLI_TESTS})
|
||||||
|
|
||||||
add_executable(${T} ${T}.cpp)
|
add_executable(${T} ${T}.cpp ${CLI_headers})
|
||||||
target_link_libraries(${T} PUBLIC CLI)
|
target_link_libraries(${T} PUBLIC CLI)
|
||||||
add_gtest(${T})
|
add_gtest(${T})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user