mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 18:41:35 +08:00
Cmake use FOLDER third-party for third party libs
This commit is contained in:
parent
306ddde049
commit
70f397f75d
@ -22,6 +22,7 @@ if(NOT benchmark_FOUND)
|
||||
# Do not build and run googlebenchmark tests
|
||||
FetchContent_Declare(googlebenchmark GIT_REPOSITORY https://github.com/google/benchmark.git GIT_TAG v1.6.0)
|
||||
FetchContent_MakeAvailable(googlebenchmark)
|
||||
set_target_properties(benchmark PROPERTIES FOLDER "third-party")
|
||||
endif()
|
||||
|
||||
add_executable(bench bench.cpp)
|
||||
|
@ -13,4 +13,5 @@ if(NOT fmt_POPULATED)
|
||||
# We do not require os features of fmt
|
||||
set(FMT_OS OFF CACHE BOOL "Disable FMT_OS" FORCE)
|
||||
add_subdirectory(${fmt_SOURCE_DIR} ${fmt_BINARY_DIR})
|
||||
set_target_properties(fmt PROPERTIES FOLDER "third-party")
|
||||
endif ()
|
||||
|
@ -24,6 +24,7 @@ else()
|
||||
GIT_TAG 53d0d913a422d356b23dd927547febdf69ee9081 # v3.5.0
|
||||
)
|
||||
FetchContent_MakeAvailable(Catch2)
|
||||
set_target_properties(Catch2 Catch2WithMain PROPERTIES FOLDER "third-party")
|
||||
endif()
|
||||
|
||||
set(SPDLOG_UTESTS_SOURCES
|
||||
|
Loading…
Reference in New Issue
Block a user