File: dynamic_lib.patch

package info (click to toggle)
gatb-core 1.4.1%2Bgit20181225.44d5a44%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,804 kB
  • sloc: cpp: 48,999; sh: 2,169; xml: 1,333; makefile: 35; python: 32
file content (27 lines) | stat: -rw-r--r-- 1,411 bytes parent folder | download | duplicates (4)
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
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 28 Nov 2017 10:37:22 +0100
Description: Create additional dynamic library

--- a/gatb-core/src/CMakeLists.txt
+++ b/gatb-core/src/CMakeLists.txt
@@ -84,10 +84,10 @@ add_definitions (${gatb-core-flags})
 include_directories (${gatb-core-includes})
 
 add_library    (gatbcore-static  STATIC  ${ComponentFiles} )
-#add_library   (gatbcore-dynamic SHARED  ${ComponentFiles} )
+add_library   (gatbcore-dynamic SHARED  ${ComponentFiles} )
 
 set_target_properties  (gatbcore-static   PROPERTIES OUTPUT_NAME  gatbcore  clean_direct_output 1)
-#set_target_properties (gatbcore-dynamic  PROPERTIES OUTPUT_NAME  gatbcore  clean_direct_output 1)
+set_target_properties (gatbcore-dynamic  PROPERTIES OUTPUT_NAME  gatbcore  clean_direct_output 1)
 
 ################################################################################
 #  INSTALLATION 
@@ -96,6 +96,7 @@ set_target_properties  (gatbcore-static
 # We install the libraries
 IF (NOT DEFINED GATB_CORE_INSTALL_EXCLUDE)
     install (TARGETS gatbcore-static DESTINATION lib)
+    install (TARGETS gatbcore-dynamic DESTINATION lib)
     install (DIRECTORY ${PROJECT_SOURCE_DIR}/src/ DESTINATION include FILES_MATCHING PATTERN "*.hpp" PATTERN "*.tpp" PATTERN "*.pri" PATTERN "*.h")
     install (FILES ${PROJECT_BINARY_DIR}/include/gatb/system/api/config.hpp DESTINATION include/gatb/system/api/)
 ENDIF ()