Skip to content

Commit

Permalink
[cmake] develop library lives at the tip of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCarouge committed Nov 10, 2022
1 parent 669c39f commit 7c81884
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,27 @@ include(GNUInstallDirs)

FetchContent_Declare(
eigen
URL "https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2"
URL_HASH "MD5=132dde48fe2b563211675626d29f1707"
GIT_REPOSITORY "https://gitlab.com/libeigen/eigen.git"
FIND_PACKAGE_ARGS NAMES Eigen3)

FetchContent_Declare(
fmt
URL "https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.tar.gz"
URL_HASH "MD5=21fac48cae8f3b4a5783ae06b443973a"
GIT_REPOSITORY "https://github.com/fmtlib/fmt.git"
FIND_PACKAGE_ARGS NAMES FMT)

FetchContent_Declare(
google_benchmark
URL "https://github.com/google/benchmark/archive/refs/tags/v1.6.2.tar.gz"
URL_HASH "MD5=14d14849e075af116143a161bc3b927b"
GIT_REPOSITORY "https://github.com/google/benchmark.git"
GIT_TAG "main"
FIND_PACKAGE_ARGS NAMES benchmark)

FetchContent_Declare(
google_test
URL "https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz"
URL_HASH "MD5=e82199374acdfda3f425331028eb4e2a"
GIT_REPOSITORY "https://github.com/google/googletest.git"
GIT_TAG "main"
FIND_PACKAGE_ARGS NAMES GTest)

FetchContent_MakeAvailable(eigen fmt google_test google_benchmark)
FetchContent_MakeAvailable(fmt google_test google_benchmark eigen)

add_subdirectory(benchmark)
add_subdirectory(include)
Expand Down

0 comments on commit 7c81884

Please sign in to comment.