X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=944e01dbe8414b82326360ae82380c6a481f88a8;hb=bafc03f4ed7ed9ff1b3fb24874dc8a4a6d58e605;hp=b89990e0ecaba46096eb0bc0ef3b516e923954f9;hpb=e235c55e4a2c5d88d13c932206db90991fa093e0;p=bamtools.git diff --git a/CMakeLists.txt b/CMakeLists.txt index b89990e..944e01d 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 2 ) +set( BamTools_VERSION_BUILD 0 ) # set our library and executable destination dirs set( EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin" ) @@ -41,10 +41,23 @@ set( LIBRARY_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/lib" ) # define compiler flags for all code 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 ) + add_definitions( -DSUN_OS ) endif() +# ------------------------------------------- + # add our includes root path include_directories( src )