X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2FCMakeLists.txt;h=a9dd0924a2925e7c661f71e6267b02489961b943;hb=9220032eb9f9db7e1226c130757d2d91de35e9e6;hp=1af7a7f917a34077699408ab574586ab5a12c7ea;hpb=61f4f02a6f27510e96de59dda110f6e5de3236ba;p=bamtools.git diff --git a/src/api/CMakeLists.txt b/src/api/CMakeLists.txt index 1af7a7f..a9dd092 100644 --- a/src/api/CMakeLists.txt +++ b/src/api/CMakeLists.txt @@ -13,7 +13,7 @@ add_definitions( -DBAMTOOLS_API_LIBRARY ) # (for proper exporting of library sym add_definitions( -fPIC ) # (attempt to force PIC compiling on CentOS, not being set on shared libs by CMake) # fetch all internal source files -add_subdirectory ( internal ) +add_subdirectory( internal ) # make list of all API source files set( BamToolsAPISources @@ -34,7 +34,7 @@ set( BamToolsAPISources # create main BamTools API shared library add_library( BamTools SHARED ${BamToolsAPISources} ) set_target_properties( BamTools PROPERTIES - SOVERSION "2.1.0" + SOVERSION "2.2.3" OUTPUT_NAME "bamtools" ) # create main BamTools API static library @@ -44,11 +44,11 @@ set_target_properties( BamTools-static PROPERTIES PREFIX "lib" ) # link libraries automatically with zlib (and Winsock2, if applicable) -if( _WIN32 ) +if( WIN32 ) set( APILibs z ws2_32 ) -else( _WIN32 ) +else() set( APILibs z ) -endif( _WIN32 ) +endif() target_link_libraries( BamTools ${APILibs} ) target_link_libraries( BamTools-static ${APILibs} )