Commit | Line | Data |
---|---|---|
07a85141 KK |
1 | include_directories(BEFORE ${CMAKE_SOURCE_DIR}/src) |
2 | include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}) | |
3 | include_directories(BEFORE ${XMLPP_INCLUDE_DIRS}) | |
263b5807 TJ |
4 | |
5 | link_directories(${XMLPP_LIBRARY_DIRS}) | |
6 | ||
7 | set(cpp_sources | |
8 | xmlcommon.cpp | |
9 | ) | |
10 | ||
11 | set(cpp_headers | |
12 | xmlcommon.hpp | |
13 | ) | |
14 | ||
57cee5f6 | 15 | add_library(i2ncommon_xml SHARED ${cpp_sources} ${cpp_headers}) |
263b5807 TJ |
16 | |
17 | target_link_libraries(i2ncommon_xml ${Xmlpp_LIBRARIES}) | |
18 | ||
f4a29765 | 19 | set_target_properties(i2ncommon_xml PROPERTIES VERSION ${VERSION} SOVERSION 4) |
263b5807 TJ |
20 | |
21 | install(TARGETS i2ncommon_xml | |
4a1afbc0 | 22 | LIBRARY DESTINATION lib${LIB_SUFFIX} |
263b5807 TJ |
23 | COMPONENT sharedlibs) |
24 | ||
25 | install(FILES ${cpp_headers} | |
c6e19f3d | 26 | DESTINATION include/${PROJECT_NAME} |
263b5807 | 27 | COMPONENT headers) |