]> git.donarmstrong.com Git - bamtools.git/commitdiff
add cmake_fixup
authorDon Armstrong <don@donarmstrong.com>
Thu, 3 Apr 2014 03:15:20 +0000 (20:15 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 3 Apr 2014 03:15:20 +0000 (20:15 -0700)
debian/patches/cmake_fixup [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/patches/cmake_fixup b/debian/patches/cmake_fixup
new file mode 100644 (file)
index 0000000..d37a709
--- /dev/null
@@ -0,0 +1,48 @@
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -6,7 +6,7 @@
+ # ==========================
+ add_subdirectory( api )
+-add_subdirectory( third_party )
++# add_subdirectory( third_party )
+ add_subdirectory( toolkit )
+ add_subdirectory( utils )
+--- a/src/third_party/CMakeLists.txt
++++ b/src/third_party/CMakeLists.txt
+@@ -6,4 +6,4 @@
+ # ==========================
+ # list third-party subdirectories to build in
+-add_subdirectory( jsoncpp )
++# add_subdirectory( jsoncpp )
+--- a/src/utils/CMakeLists.txt
++++ b/src/utils/CMakeLists.txt
+@@ -20,11 +20,26 @@
+              bamtools_utilities.cpp
+            )
++add_library( BamTools-utils-static STATIC 
++             bamtools_fasta.cpp
++             bamtools_options.cpp
++             bamtools_pileup_engine.cpp
++             bamtools_utilities.cpp
++           )
++set_target_properties(BamTools-utils-static PROPERTIES 
++           OUTPUT_NAME "bamtools-utils"
++           PREFIX "lib"
++           )
++
+ # link BamTools-utils library with BamTools automatically
+ target_link_libraries( BamTools-utils BamTools )
++target_link_libraries( BamTools-utils-static BamTools )
+ # set BamTools library properties
+ set_target_properties( BamTools-utils PROPERTIES
+                        SOVERSION   2.2.0
+                        OUTPUT_NAME bamtools-utils
+                      )
++
++install( TARGETS BamTools-utils LIBRARY DESTINATION "lib/bamtools" RUNTIME DESTINATION "bin")
++install( TARGETS BamTools-utils-static ARCHIVE DESTINATION "lib/bamtools")
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..dda69f1
--- /dev/null
@@ -0,0 +1 @@
+cmake_fixup