dbef7f8bcc99f8ba6ff940a280f5261b474bb7f8
[libi2ncommon] / utils / CMakeLists.txt
1 include_directories(${CMAKE_SOURCE_DIR}/src)
2 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
3
4 set(cpp_sources
5     containerfunc.cpp
6     signalfunc.cpp
7 )
8 set(cpp_headers
9     containerfunc.hpp
10     signalfunc.hpp
11 )
12
13 add_library(i2ncommon_utils SHARED ${cpp_sources} ${hpp_sources})
14
15 set_target_properties(i2ncommon_utils PROPERTIES VERSION ${VERSION} SOVERSION ${MAJOR_VERSION})
16
17
18 install(TARGETS i2ncommon_utils
19         LIBRARY DESTINATION lib
20         COMPONENT sharedlibs)
21
22 install(FILES ${cpp_headers}
23         DESTINATION include
24         COMPONENT headers)