Package: racon / 1.4.10-1~bpo9+1

use_debian_packaged_libs.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Author: Andreas Tille <tille@debian.org>
Last-Update:  Fri, 08 Jun 2018 13:20:51 +0200
Description: Use Debian packaged libraries

--- racon.orig/CMakeLists.txt
+++ racon/CMakeLists.txt
@@ -47,18 +47,6 @@
 # Add version information to bibary.
 target_compile_definitions(racon PRIVATE RACON_VERSION="v${racon_version}")
 
-if (NOT TARGET bioparser)
-    add_subdirectory(vendor/bioparser EXCLUDE_FROM_ALL)
-endif()
-if (NOT TARGET spoa)
-    add_subdirectory(vendor/spoa EXCLUDE_FROM_ALL)
-endif()
-if (NOT TARGET thread_pool)
-    add_subdirectory(vendor/thread_pool EXCLUDE_FROM_ALL)
-endif()
-if (NOT TARGET edlib)
-    add_subdirectory(vendor/edlib EXCLUDE_FROM_ALL)
-endif()
 if (racon_enable_cuda)
     if (DEFINED CLARAGENOMICSANALYSIS_SDK_PATH)
         list(APPEND CMAKE_PREFIX_PATH "${CLARAGENOMICSANALYSIS_SDK_PATH}/cmake")
@@ -88,7 +76,8 @@
     endif()
 endif()
 
-target_link_libraries(racon bioparser spoa thread_pool edlib_static)
+target_link_libraries(racon spoa thread_pool edlib z)
+set_target_properties(racon PROPERTIES COMPILE_FLAGS -pthread LINK_FLAGS -pthread)
 if (racon_enable_cuda)
     target_link_libraries(racon cudapoa cudaaligner)
 endif()
@@ -118,11 +107,7 @@
         add_executable(racon_test ${racon_test_sources})
     endif()
 
-    if (NOT TARGET gtest_main)
-        add_subdirectory(vendor/googletest/googletest EXCLUDE_FROM_ALL)
-    endif()
-
-    target_link_libraries(racon_test bioparser spoa thread_pool edlib_static gtest_main)
+    target_link_libraries(racon_test spoa thread_pool pthread edlib gtest_main gtest z)
     if (racon_enable_cuda)
         target_link_libraries(racon_test cudapoa cudaaligner)
     endif()