f0af0698d3d5f4472f0bf4d9acbba0bdd451cae0
[libi2ncommon] / configlib / CMakeLists.txt
1 include_directories(${CMAKE_SOURCE_DIR}/src)
2
3 set(cpp_sources
4     i2n_global_config.cpp
5 )
6
7 set(cpp_headers
8     i2n_global_config.hpp
9 )
10
11 add_library(i2ncommon_config SHARED ${cpp_sources} ${cpp_headers})
12
13 set_target_properties(i2ncommon_config PROPERTIES VERSION ${VERSION} SOVERSION 3)
14
15
16 install(TARGETS i2ncommon_config
17         LIBRARY DESTINATION lib${LIB_SUFFIX}
18         COMPONENT sharedlibs)
19
20 install(FILES ${cpp_headers}
21         DESTINATION include/${PROJECT_NAME}
22         COMPONENT headers)