]> git.donarmstrong.com Git - bamtools.git/blobdiff - CMakeLists.txt
add input file list method to bamtools merge
[bamtools.git] / CMakeLists.txt
index 96d34676a13cbe20e702e654622355cc54467772..27deb55c2b1ba59164fb6f50878d0d3079e022ee 100644 (file)
@@ -31,7 +31,7 @@ ensure_out_of_source_build( "
 
 # set BamTools version information
 set( BamTools_VERSION_MAJOR 2 )
-set( BamTools_VERSION_MINOR 1 )
+set( BamTools_VERSION_MINOR 2 )
 set( BamTools_VERSION_BUILD 1 )
 
 # set our library and executable destination dirs
@@ -42,6 +42,22 @@ set( LIBRARY_OUTPUT_PATH    "${CMAKE_SOURCE_DIR}/lib" )
 set( CMAKE_BUILD_TYPE Release )
 add_definitions( -Wall -D_FILE_OFFSET_BITS=64 )
 
+# -----------------------------------------------
+# handle platform-/environment-specific defines
+
+# If planning to run in Node.js environment, run:
+# cmake -DEnableNodeJS=true
+if( EnableNodeJS )
+    add_definitions( -DSYSTEM_NODEJS=1 )
+endif()
+
+# If running on SunOS
+if( "${CMAKE_SYSTEM_NAME}" MATCHES "SunOS" )
+    add_definitions( -DSUN_OS )
+endif()
+
+# -------------------------------------------
+
 # add our includes root path
 include_directories( src )