Fix installation and dependency generation of header files
[libi2ncommon] / configlib / CMakeLists.txt
CommitLineData
263b5807
TJ
1include_directories(${CMAKE_SOURCE_DIR}/src)
2
3set(cpp_sources
4 i2n_global_config.cpp
5)
6
7set(cpp_headers
8 i2n_global_config.hpp
9)
10
57cee5f6 11add_library(i2ncommon_config SHARED ${cpp_sources} ${cpp_headers})
263b5807
TJ
12
13set_target_properties(i2ncommon_config PROPERTIES VERSION ${VERSION} SOVERSION ${MAJOR_VERSION})
14
15
16install(TARGETS i2ncommon_config
17 LIBRARY DESTINATION lib
18 COMPONENT sharedlibs)
19
20install(FILES ${cpp_headers}
21 DESTINATION include
22 COMPONENT headers)