1 # ==========================
2 # BamTools CMakeLists.txt
3 # (c) 2010 Derek Barnett
6 # ==========================
9 include_directories (${BamTools_SOURCE_DIR}/src/api)
11 # add compiler definitions
12 add_definitions(-DBAMTOOLS_UTILS_LIBRARY) # (for proper exporting of library symbols)
13 add_definitions( -fPIC ) # (attempt to force PIC compiling on CentOS, not being set on shared libs by CMake)
15 # create BamTools utils library
16 add_library ( BamTools-utils SHARED
19 bamtools_pileup_engine.cpp
20 bamtools_utilities.cpp
23 # link BamTools-utils library with BamTools automatically
24 target_link_libraries ( BamTools-utils BamTools )
26 # set BamTools library properties
27 set_target_properties( BamTools-utils PROPERTIES
29 OUTPUT_NAME bamtools-utils