mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
More cmake scripts: ApacheConnector, Crypto, NetSSL, WebWidgets, Zip
This commit is contained in:
parent
57bd673b01
commit
32642ba9c1
20
ApacheConnector/CMakeLists.txt
Normal file
20
ApacheConnector/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
set(LIBNAME "mod_poco")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
include_directories( include /usr/include/apache2 /usr/include/apr-0 /usr/include/apr-1 )
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
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( ${LIBNAME} )
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
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( ${LIBNAMED} )
|
@ -16,7 +16,7 @@ else(POCO_STATIC)
|
||||
endif(POCO_STATIC)
|
||||
|
||||
# Set local include path
|
||||
include_directories( CppUnit/include Foundation/include XML/include Net/include Util/include Data/include )
|
||||
include_directories( CppUnit/include Foundation/include XML/include Net/include NetSSL_OpenSSL/include Util/include Data/include WebWidgets/include Zip/include)
|
||||
|
||||
include(CheckTypeSize)
|
||||
include(FindCygwin)
|
||||
@ -42,4 +42,11 @@ add_subdirectory(Foundation)
|
||||
add_subdirectory(XML)
|
||||
add_subdirectory(Util)
|
||||
add_subdirectory(Net)
|
||||
if(OPENSSL_FOUND)
|
||||
add_subdirectory(NetSSL_OpenSSL)
|
||||
add_subdirectory(Crypto)
|
||||
endif(OPENSSL_FOUND)
|
||||
add_subdirectory(Data)
|
||||
add_subdirectory(WebWidgets)
|
||||
add_subdirectory(Zip)
|
||||
add_subdirectory(ApacheConnector)
|
||||
|
20
Crypto/CMakeLists.txt
Normal file
20
Crypto/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
set(LIBNAME "PocoCrypto")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
include_directories( include)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
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( ${LIBNAME} ssl crypto)
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
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( ${LIBNAMED} ssl crypto)
|
18
NetSSL_OpenSSL/CMakeLists.txt
Normal file
18
NetSSL_OpenSSL/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
set(LIBNAME "PocoNetSSL")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
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( ${LIBNAME} ssl crypto)
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
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( ${LIBNAMED} ssl crypto)
|
22
WebWidgets/CMakeLists.txt
Normal file
22
WebWidgets/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
set(LIBNAME "PocoWebWidgets")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
set(SRCS "")
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
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( ${LIBNAME} PocoFoundation )
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
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( ${LIBNAMED} PocoFoundationd )
|
||||
|
||||
add_subdirectory( ExtJS )
|
||||
#add_subdirectory( testsuite )
|
25
WebWidgets/ExtJS/CMakeLists.txt
Normal file
25
WebWidgets/ExtJS/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
set(LIBNAME "PocoExtJS")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
include_directories( include src )
|
||||
|
||||
set(SRCS "")
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
add_definitions(-DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_TCL_VARIABLE)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
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( ${LIBNAME} PocoData )
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
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( ${LIBNAMED} PocoDatad )
|
||||
|
||||
#add_subdirectory( testsuite )
|
18
Zip/CMakeLists.txt
Normal file
18
Zip/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
set(LIBNAME "PocoZip")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
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( ${LIBNAME} )
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
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( ${LIBNAMED} )
|
Loading…
Reference in New Issue
Block a user