]> git.donarmstrong.com Git - bamtools.git/blob - src/api/CMakeLists.txt
Continued breaking up of monolithic classes: extracted BamStandardIndex & BamToolsInd...
[bamtools.git] / src / api / CMakeLists.txt
1 # ==========================
2 # BamTools CMakeLists.txt
3 # (c) 2010 Derek Barnett
4 #
5 # src/api/
6 # ==========================
7
8 # list include paths
9 include_directories ( ${BamTools_SOURCE_DIR}/src )
10
11 # add compiler definitions 
12 add_definitions(-DBAMTOOLS_API_LIBRARY) # (for proper exporting of library symbols)
13
14 # create main BamTools API library
15 add_library ( BamTools SHARED 
16               BamAlignment.cpp 
17               BamIndex.cpp 
18               BamMultiReader.cpp
19               BamReader.cpp
20               BamReader_p.cpp
21               BamStandardIndex.cpp
22               BamToolsIndex.cpp
23               BamWriter.cpp
24               BamWriter_p.cpp
25               BGZF.cpp 
26             )
27
28 # link BamTools library with zlib automatically
29 target_link_libraries ( BamTools z )
30
31 # set BamTools library properties
32 set_target_properties( BamTools PROPERTIES
33                        SOVERSION   0.9.0
34                        OUTPUT_NAME bamtools
35                      )