]> git.donarmstrong.com Git - bamtools.git/blob - src/utils/CMakeLists.txt
Cleaned up intra-API includes & moved version numbers to 2.0.0
[bamtools.git] / src / utils / CMakeLists.txt
1 # ==========================
2 # BamTools CMakeLists.txt
3 # (c) 2010 Derek Barnett
4 #
5 # src/utils/
6 # ==========================
7
8 # list include paths
9 include_directories (${BamTools_SOURCE_DIR}/src/api) 
10
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)
14
15 # create BamTools utils library
16 add_library ( BamTools-utils SHARED 
17               bamtools_fasta.cpp
18               bamtools_options.cpp
19               bamtools_pileup_engine.cpp
20               bamtools_utilities.cpp
21             )
22
23 # link BamTools-utils library with BamTools automatically
24 target_link_libraries ( BamTools-utils BamTools )
25
26 # set BamTools library properties
27 set_target_properties( BamTools-utils PROPERTIES
28                        SOVERSION   2.0.0
29                        OUTPUT_NAME bamtools-utils
30                      )