nixpkgs/pkgs/by-name/ge/genmap/gtest.patch
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08: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)