X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=CMakeLists.txt;h=9e3dc8eb3bfa4cffb5cdb695cafbf61c20d9fd62;hb=1a0f5104b8e573a22be5a57ea861129b5e86ad22;hp=f4f23bdce12166fd37c77ff14c9181e95f98b5f2;hpb=a50400c186a05160e1164bf544571b739ff6fac8;p=bamtools.git diff --git a/CMakeLists.txt b/CMakeLists.txt index f4f23bd..9e3dc8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,9 +11,6 @@ project( BamTools ) # Cmake requirements cmake_minimum_required( VERSION 2.6.4 ) -# init CTest -enable_testing() - # Force the build directory to be different from source directory macro( ENSURE_OUT_OF_SOURCE_BUILD MSG ) string( COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" insource ) @@ -34,8 +31,8 @@ ensure_out_of_source_build( " # set BamTools version information set( BamTools_VERSION_MAJOR 2 ) -set( BamTools_VERSION_MINOR 0 ) -set( BamTools_VERSION_BUILD 5 ) +set( BamTools_VERSION_MINOR 2 ) +set( BamTools_VERSION_BUILD 2 ) # set our library and executable destination dirs set( EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin" ) @@ -45,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 )