]> git.donarmstrong.com Git - bamtools.git/blob - src/api/CMakeLists.txt
Migrated to CMake build system.
[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/shared )
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               BamWriter.cpp
21               BGZF.cpp 
22             )
23
24 # link BamTools library with zlib automatically
25 target_link_libraries ( BamTools z )
26
27 # set BamTools library properties
28 set_target_properties( BamTools PROPERTIES
29                        SOVERSION   0.9.0
30                        OUTPUT_NAME bamtools
31                      )