mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
0ac146cb9e
minimum required CMAKE version is 2.6 from now
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
set(LIBNAME "PocoXML")
|
|
set(LIBNAMED "${LIBNAME}d")
|
|
|
|
aux_source_directory(src SRCS)
|
|
|
|
add_definitions(-DXML_NS -DXML_DTD -DHAVE_EXPAT_CONFIG_H)
|
|
|
|
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
|
set_target_properties( ${LIBNAME}
|
|
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
|
VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
|
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
|
target_link_libraries( ${LIBNAME} PocoFoundation)
|
|
|
|
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
|
set_target_properties( ${LIBNAMED}
|
|
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
|
VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
|
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
|
target_link_libraries( ${LIBNAMED} PocoFoundationd)
|
|
|
|
install(
|
|
DIRECTORY include/Poco
|
|
DESTINATION include
|
|
PATTERN ".svn" EXCLUDE
|
|
)
|
|
|
|
install(
|
|
TARGETS ${LIBNAME} ${LIBNAMED}
|
|
DESTINATION lib
|
|
)
|
|
|
|
if (ENABLE_TESTS)
|
|
add_subdirectory(samples)
|
|
add_subdirectory(testsuite)
|
|
endif ()
|
|
|