mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 02:57:45 +01:00
CMake: Build PocoDoc using CMake
This commit is contained in:
parent
d9c0d2b495
commit
739cd30487
@ -85,6 +85,7 @@ option(ENABLE_SEVENZIP "Enable SevenZip" ON)
|
|||||||
option(ENABLE_ZIP "Enable Zip" ON)
|
option(ENABLE_ZIP "Enable Zip" ON)
|
||||||
option(ENABLE_APACHECONNECTOR "Enable ApacheConnector" ON)
|
option(ENABLE_APACHECONNECTOR "Enable ApacheConnector" ON)
|
||||||
option(ENABLE_CPPPARSER "Enable C++ parser" 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)
|
option(FORCE_OPENSSL "Force usage of OpenSSL even under windows" OFF)
|
||||||
|
|
||||||
@ -255,6 +256,11 @@ add_subdirectory(CppParser)
|
|||||||
list(APPEND Poco_COMPONENTS "CppParser")
|
list(APPEND Poco_COMPONENTS "CppParser")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_POCODOC)
|
||||||
|
add_subdirectory(PocoDoc)
|
||||||
|
list(APPEND Poco_COMPONENTS "PocoDoc")
|
||||||
|
endif()
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
# Uninstall stuff see: http://www.vtk.org/Wiki/CMake_FAQ
|
# Uninstall stuff see: http://www.vtk.org/Wiki/CMake_FAQ
|
||||||
configure_file(
|
configure_file(
|
||||||
|
19
PocoDoc/CMakeLists.txt
Normal file
19
PocoDoc/CMakeLists.txt
Normal 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}")
|
Loading…
Reference in New Issue
Block a user