CMake: Build PocoDoc using CMake

This commit is contained in:
Pascal Bach 2014-12-11 10:31:13 +01:00 committed by Pascal Bach
parent d9c0d2b495
commit 739cd30487
2 changed files with 25 additions and 0 deletions

View File

@ -85,6 +85,7 @@ option(ENABLE_SEVENZIP "Enable SevenZip" ON)
option(ENABLE_ZIP "Enable Zip" ON)
option(ENABLE_APACHECONNECTOR "Enable ApacheConnector" ON)
option(ENABLE_CPPPARSER "Enable C++ parser" ON)
option(ENABLE_POCODOC "Enable Poco Documentation Generator" ON)
option(FORCE_OPENSSL "Force usage of OpenSSL even under windows" OFF)
@ -255,6 +256,11 @@ add_subdirectory(CppParser)
list(APPEND Poco_COMPONENTS "CppParser")
endif()
if(ENABLE_POCODOC)
add_subdirectory(PocoDoc)
list(APPEND Poco_COMPONENTS "PocoDoc")
endif()
#############################################################
# Uninstall stuff see: http://www.vtk.org/Wiki/CMake_FAQ
configure_file(

19
PocoDoc/CMakeLists.txt Normal file
View File

@ -0,0 +1,19 @@
set(POCO_EXENAME "PocoDoc")
# Sources
file(GLOB SRCS_G "src/*.cpp")
POCO_SOURCES_AUTO( SRCS ${SRCS_G})
add_executable( "${POCO_EXENAME}" ${SRCS} )
target_link_libraries( "${POCO_EXENAME}" Util XML Foundation CppParser)
install(
TARGETS "${POCO_EXENAME}" EXPORT "${POCO_EXENAME}Targets"
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX}
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)
#POCO_GENERATE_PACKAGE("${LIBNAME}" "${LIBNAME}Targets" "lib/cmake/${PROJECT_NAME}")