Skip to content

Commit

Permalink
Cmake use FOLDER third-party for third party libs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Dec 24, 2023
1 parent 306ddde commit 70f397f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions cmake/fmtlib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70f397f

Please sign in to comment.