]> git.donarmstrong.com Git - bamtools.git/blob - debian/patches/cmake_fixup
add cmake_fixup
[bamtools.git] / debian / patches / cmake_fixup
1 --- a/src/CMakeLists.txt
2 +++ b/src/CMakeLists.txt
3 @@ -6,7 +6,7 @@
4  # ==========================
5  
6  add_subdirectory( api )
7 -add_subdirectory( third_party )
8 +# add_subdirectory( third_party )
9  add_subdirectory( toolkit )
10  add_subdirectory( utils )
11  
12 --- a/src/third_party/CMakeLists.txt
13 +++ b/src/third_party/CMakeLists.txt
14 @@ -6,4 +6,4 @@
15  # ==========================
16  
17  # list third-party subdirectories to build in
18 -add_subdirectory( jsoncpp )
19 +# add_subdirectory( jsoncpp )
20 --- a/src/utils/CMakeLists.txt
21 +++ b/src/utils/CMakeLists.txt
22 @@ -20,11 +20,26 @@
23               bamtools_utilities.cpp
24             )
25  
26 +add_library( BamTools-utils-static STATIC 
27 +             bamtools_fasta.cpp
28 +             bamtools_options.cpp
29 +             bamtools_pileup_engine.cpp
30 +             bamtools_utilities.cpp
31 +            )
32 +set_target_properties(BamTools-utils-static PROPERTIES 
33 +            OUTPUT_NAME "bamtools-utils"
34 +            PREFIX "lib"
35 +            )
36 +
37  # link BamTools-utils library with BamTools automatically
38  target_link_libraries( BamTools-utils BamTools )
39 +target_link_libraries( BamTools-utils-static BamTools )
40  
41  # set BamTools library properties
42  set_target_properties( BamTools-utils PROPERTIES
43                         SOVERSION   2.2.0
44                         OUTPUT_NAME bamtools-utils
45                       )
46 +
47 +install( TARGETS BamTools-utils LIBRARY DESTINATION "lib/bamtools" RUNTIME DESTINATION "bin")
48 +install( TARGETS BamTools-utils-static ARCHIVE DESTINATION "lib/bamtools")