Files
nixpkgs/pkgs/by-name/ge/genmap/gtest.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

31 lines
1.3 KiB
Diff

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 67ec8f9..ed0b2e0 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -2,23 +2,14 @@
# GenMap tests
# ===========================================================================
-include (ExternalProject)
-ExternalProject_Add (googletest
- PREFIX "${CMAKE_CURRENT_BINARY_DIR}/googletest"
- GIT_REPOSITORY "https://github.com/google/googletest.git"
- INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}"
- CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}"
- GIT_TAG release-1.10.0
- UPDATE_DISCONNECTED YES)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") # TODO: --coverage
add_executable (genmap_algo_test tests.cpp)
-add_dependencies (genmap_algo_test googletest)
include_directories (${CMAKE_CURRENT_BINARY_DIR}/include)
target_link_libraries (genmap_algo_test ${SEQAN_LIBRARIES})
-target_link_libraries (genmap_algo_test ${CMAKE_CURRENT_BINARY_DIR}/lib/libgtest.a)
-target_link_libraries (genmap_algo_test ${CMAKE_CURRENT_BINARY_DIR}/lib/libgtest_main.a)
+target_link_libraries (genmap_algo_test -lgtest)
+target_link_libraries (genmap_algo_test -lgtest_main)
target_link_libraries (genmap_algo_test pthread)
add_test(NAME algo_test COMMAND genmap_algo_test)