mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
prevent cxxopts from adding tests. fixes #90.
This commit is contained in:
parent
0b21db1022
commit
41f49b8991
2 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,9 @@ include(../cmake/tools.cmake)
|
|||
|
||||
include(../cmake/CPM.cmake)
|
||||
|
||||
set(CXXOPTS_BUILD_TESTS NO)
|
||||
CPMAddPackage("gh:jarro2783/cxxopts@2.2.0")
|
||||
|
||||
CPMAddPackage(NAME Greeter SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/..)
|
||||
|
||||
# ---- Create standalone executable ----
|
||||
|
|
|
@ -16,6 +16,7 @@ include(../cmake/tools.cmake)
|
|||
include(../cmake/CPM.cmake)
|
||||
|
||||
CPMAddPackage("gh:onqtam/doctest#2.4.5")
|
||||
CPMAddPackage("gh:TheLartians/Format.cmake@1.7.0")
|
||||
|
||||
if(TEST_INSTALLED_VERSION)
|
||||
find_package(Greeter REQUIRED)
|
||||
|
@ -23,8 +24,6 @@ else()
|
|||
CPMAddPackage(NAME Greeter SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/..)
|
||||
endif()
|
||||
|
||||
CPMAddPackage("gh:TheLartians/Format.cmake@1.7.0")
|
||||
|
||||
# ---- Create binary ----
|
||||
|
||||
file(GLOB sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue