File: use_debian_packaged_libraries.patch

package info (click to toggle)
simka 1.5.3-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,200 kB
  • sloc: cpp: 5,321; python: 672; sh: 386; makefile: 26
file content (68 lines) | stat: -rw-r--r-- 2,702 bytes parent folder | 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Description: use system-wide debian packaged libraries instead
 This is instead of relying on cmake to compile and link against the libraries included within simka
Author: Shayan Doust <hello@shayandoust.me>
Last-Update: 2019-09-09
---

--- simka.orig/CMakeLists.txt
+++ simka/CMakeLists.txt
@@ -42,7 +42,10 @@
  SET (GATB_CORE_EXCLUDE_EXAMPLES  1)
 
 # GATB CORE
-include (GatbCore)
+#include (GatbCore)
+
+include(GNUInstallDirs)
+link_directories (/usr/${CMAKE_INSTALL_LIBDIR}/hdf5/serial)
 
 ################################################################################
 # TOOL
@@ -53,17 +56,21 @@
 
 # we add a new compilation variable
 if (PRINTALL)
-SET( CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -DPRINTALL" )
+	#SET( CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -DPRINTALL -wno-error" )
 endif()
 
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error -O2 -g -Wunused-result")
+
 # we give the headers directories from :
 #       - from project source
 #       - from GATB-CORE source
 #       - from simka source
 include_directories (include ${gatb-core-includes} ${PROJECT_SOURCE_DIR}/src/core ${PROJECT_SOURCE_DIR}/src/minikc ${PROJECT_SOURCE_DIR}/src)
 
+list (APPEND KSIZE_DEFAULT_LIST  32   64   96  128  160  192  224  256)
+
 # we generate one file per template specialization
-FOREACH (KSIZE ${gatb-core-klist})
+FOREACH (KSIZE ${KSIZE_DEFAULT_LIST})
     configure_file (
         ${PROJECT_SOURCE_DIR}/src/core/SimkaAlgorithmTemplate.cpp.in
         ${PROJECT_BINARY_DIR}/src/core/template/SimkaAlgorithmTemplate_${KSIZE}.cpp
@@ -78,18 +85,18 @@
 set(PROJECT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/bin)
 
 add_executable        (simka  src/SimkaPotara.cpp ${ProjectFiles})
-target_link_libraries (simka  ${gatb-core-libraries})
+target_link_libraries (simka  gatbcore hdf5 z)
 
 add_executable        (simkaCountProcess  src/minikc/SimkaCountProcess.cpp ${ProjectFiles})
-target_link_libraries (simkaCountProcess  ${gatb-core-libraries})
+target_link_libraries (simkaCountProcess  gatbcore hdf5 z)
 add_executable        (simkaCount  src/SimkaCount.cpp ${ProjectFiles})
-target_link_libraries (simkaCount  ${gatb-core-libraries})
+target_link_libraries (simkaCount  gatbcore hdf5 z)
 
 add_executable        (simkaMerge  src/SimkaMerge.cpp ${ProjectFiles})
-target_link_libraries (simkaMerge  ${gatb-core-libraries})
+target_link_libraries (simkaMerge  gatbcore hdf5 z)
 
 add_executable        (simkaMinCore  src/simkaMin/SimkaMin.cpp ${SimkaMinFiles})
-target_link_libraries (simkaMinCore  ${gatb-core-libraries})
+target_link_libraries (simkaMinCore  gatbcore hdf5 z pthread)
 
 ################################################################################
 #  DOCUMENTATION GENERATION