]> git.donarmstrong.com Git - bamtools.git/commitdiff
update cmake fixup
authorDon Armstrong <don@donarmstrong.com>
Thu, 3 Apr 2014 20:57:05 +0000 (13:57 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 3 Apr 2014 20:57:05 +0000 (13:57 -0700)
debian/patches/cmake_fixup

index d37a709de78171c3356b13e8c8cb97c19390a194..605c82ce0d891dfc8d803727b77c09a76fc0213e 100644 (file)
  # 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
           )
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -38,6 +38,8 @@
+ set( EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin" )
set( LIBRARY_OUTPUT_PATH    "${CMAKE_SOURCE_DIR}/lib" )
  
-+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"
-+           )
++SET(CMAKE_INSTALL_RPATH "/usr/lib/bamtools")
 +
- # 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")
+ # define compiler flags for all code
+ set( CMAKE_BUILD_TYPE Release )
+ add_definitions( -Wall -D_FILE_OFFSET_BITS=64 )