X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=CMakeLists.txt;h=9b97fa07bb4aa05f646d7f0e8130d479134756fa;hb=9cfa70bfe9cdf1b6adc06beb88246b45fdd6250a;hp=96d34676a13cbe20e702e654622355cc54467772;hpb=76bb08a359f3974eee3e96327b965ccf7958ed1a;p=bamtools.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 96d3467..9b97fa0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,8 +31,8 @@ ensure_out_of_source_build( " # set BamTools version information set( BamTools_VERSION_MAJOR 2 ) -set( BamTools_VERSION_MINOR 1 ) -set( BamTools_VERSION_BUILD 1 ) +set( BamTools_VERSION_MINOR 3 ) +set( BamTools_VERSION_BUILD 0 ) # set our library and executable destination dirs set( EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin" ) @@ -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 )