]> git.donarmstrong.com Git - bamtools.git/blob - src/third_party/jsoncpp/CMakeLists.txt
9cc442ad9968f35359a8d884ec0408fba6f4e340
[bamtools.git] / src / third_party / jsoncpp / CMakeLists.txt
1 # ==========================
2 # BamTools CMakeLists.txt
3 # (c) 2010 Derek Barnett
4 #
5 # src/third-party/jsoncpp
6 # ==========================
7
8 # add compiler definitions 
9 add_definitions(-DBAMTOOLS_JSONCPP_LIBRARY) # (for proper exporting of library symbols)
10 add_definitions( -fPIC ) # (attempt to force PIC compiling on CentOS, not being set on shared libs by CMake)
11
12 # create jsoncpp library
13 add_library ( jsoncpp SHARED 
14               json_reader.cpp
15               json_value.cpp
16               json_writer.cpp
17             )
18
19 # set jsoncpp library properties
20 set_target_properties( jsoncpp PROPERTIES
21                        SOVERSION   1.0.0
22                        OUTPUT_NAME jsoncpp
23                      )