mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-29 12:45:22 +01:00
trunk: split cmake debug/optimize build
This commit is contained in:
parent
45d3f03f14
commit
7cb622a445
@ -1,18 +1,13 @@
|
||||
set(LIBNAME "mod_poco")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
include_directories( include ${APACHE_INCLUDE_DIR} ${APRUTIL_INCLUDE_DIR} )
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
add_library( ${LIBNAME} SHARED ${SRCS} )
|
||||
set_target_properties( ${LIBNAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} )
|
||||
|
||||
add_library( ${LIBNAMED} SHARED ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED} PROPERTIES COMPILE_FLAGS ${DEBUG_CXX_FLAGS} VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} )
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
add_subdirectory(samples)
|
||||
endif ()
|
@ -11,9 +11,30 @@ SET(COMPLETE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINO
|
||||
SET(RELEASE_NAME "Unstable-trunk")
|
||||
SET(PROJECT_VERSION ${COMPLETE_VERSION})
|
||||
|
||||
#set(COMMON_CXX "-Wall -Wno-sign-compare")
|
||||
set(DEBUG_CXX_FLAGS "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
|
||||
set(RELEASE_CXX_FLAGS "${CMAKE_CXX_FLAGS_RELEASE}")
|
||||
if(POCO_DEBUG)
|
||||
set( CMAKE_BUILD_TYPE "Debug" )
|
||||
endif(POCO_DEBUG)
|
||||
|
||||
if (CMAKE_BUILD_TYPE MATCHES "")
|
||||
set( CMAKE_BUILD_TYPE "RelWithDebInfo" )
|
||||
endif (CMAKE_BUILD_TYPE MATCHES "")
|
||||
|
||||
# http://www.cmake.org/Wiki/CMake_Useful_Variables :
|
||||
# CMAKE_BUILD_TYPE
|
||||
# Choose the type of build. CMake has default flags for these:
|
||||
#
|
||||
# * None (CMAKE_C_FLAGS or CMAKE_CXX_FLAGS used)
|
||||
# * Debug (CMAKE_C_FLAGS_DEBUG or CMAKE_CXX_FLAGS_DEBUG)
|
||||
# * Release (CMAKE_C_FLAGS_RELEASE or CMAKE_CXX_FLAGS_RELEASE)
|
||||
# * RelWithDebInfo (CMAKE_C_FLAGS_RELWITHDEBINFO or CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
||||
# * MinSizeRel (CMAKE_C_FLAGS_MINSIZEREL or CMAKE_CXX_FLAGS_MINSIZEREL)
|
||||
if (CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
message(STATUS "Debug output enabled")
|
||||
set(LIB_EXT "d")
|
||||
else (CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
message(STATUS "Optimized output enabled")
|
||||
set(LIB_EXT "r")
|
||||
endif (CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
|
||||
option(ENABLE_TESTS
|
||||
"Set to OFF|ON (default is OFF) to control build of POCO tests & samples" OFF)
|
||||
@ -139,6 +160,7 @@ SET(CPACK_PACKAGE_INSTALL_DIRECTORY "/usr/local")
|
||||
INCLUDE(CPack)
|
||||
|
||||
message(STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator")
|
||||
message(STATUS "XXX: DEBUG =${DEBUG_CXX_FLAGS}")
|
||||
message(STATUS "XXX: RELEASE=${RELEASE_CXX_FLAGS}")
|
||||
|
||||
message(STATUS "C_FLAGS: =${CMAKE_C_FLAGS}")
|
||||
message(STATUS "CXX_FLAGS:=${CMAKE_CXX_FLAGS}")
|
||||
|
||||
|
@ -1,18 +1,11 @@
|
||||
set(LIBNAME "CppUnit")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION "1"
|
||||
SOVERSION "1")
|
||||
target_link_libraries( ${LIBNAME} )
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION "1"
|
||||
SOVERSION "1")
|
||||
target_link_libraries( ${LIBNAMED} )
|
||||
|
@ -1,20 +1,13 @@
|
||||
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 ${RELEASE_CXX_FLAGS} VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoNetSSL PocoNet ssl crypto)
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoNetSSLd PocoNetd ssl crypto)
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -22,7 +15,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
set(LIBNAME "PocoData")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
set(SRCS "")
|
||||
aux_source_directory(src SRCS)
|
||||
@ -7,16 +6,10 @@ include_directories( SQLite/include )
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoFoundation )
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoFoundationd )
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -24,7 +17,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
set(LIBNAME "PocoDataMySQL")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
set(SRCS "")
|
||||
aux_source_directory(src SRCS)
|
||||
@ -11,16 +10,10 @@ include_directories( include ${MYSQL_INCLUDE_DIR})
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoData PocoFoundation ${MYSQL_LIB})
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoDatad PocoFoundationd ${MYSQL_LIB})
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -28,7 +21,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
set(LIBNAME "PocoDataODBC")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
set(SRCS
|
||||
src/Binder.cpp
|
||||
@ -24,16 +23,10 @@ include_directories( include )
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoData PocoFoundation ${ODBC_LINK_FLAGS})
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoDatad PocoFoundationd ${ODBC_LINK_FLAGS})
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -41,7 +34,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
set(LIBNAME "PocoDataSQLite")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
include_directories( include src )
|
||||
|
||||
@ -10,16 +9,10 @@ add_definitions(-DSQLITE_THREADSAFE=1 -DSQLITE_DISABLE_LFS -DSQLITE_OMIT_UTF16 -
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoData PocoFoundation)
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoDatad PocoFoundationd )
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -27,7 +20,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
set(LIBNAME "PocoFoundation")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
set(LIBNAME "${LIBNAME}d")
|
||||
endif()
|
||||
|
||||
|
||||
set( BASE_SRCS
|
||||
src/ASCIIEncoding.cpp
|
||||
@ -193,19 +196,12 @@ else (CMAKE_SYSTEM MATCHES "Windows")
|
||||
endif(CMAKE_SYSTEM MATCHES "Windows")
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
if (${CMAKE_CXX_COMPILER_ID} MATCHES "SunPro")
|
||||
set_target_properties( ${LIBNAME} PROPERTIES LINK_FLAGS "-library=stlport4")
|
||||
endif (${CMAKE_CXX_COMPILER_ID} MATCHES "SunPro")
|
||||
target_link_libraries( ${LIBNAME} ${SYSLIBS})
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED} PROPERTIES COMPILE_FLAGS ${DEBUG_CXX_FLAGS} VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
if (${CMAKE_CXX_COMPILER_ID} MATCHES "SunPro")
|
||||
set_target_properties( ${LIBNAMED} PROPERTIES LINK_FLAGS "-library=stlport4")
|
||||
endif (${CMAKE_CXX_COMPILER_ID} MATCHES "SunPro")
|
||||
target_link_libraries( ${LIBNAMED} ${SYSLIBS})
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -213,7 +209,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
set(LIBNAME "PocoNet")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
aux_source_directory(src BASE_SRCS)
|
||||
|
||||
@ -22,16 +21,10 @@ endif (NOT POCO_STATIC)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoFoundation ${SYSLIBS})
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoFoundationd ${SYSLIBS})
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -39,7 +32,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,20 +1,13 @@
|
||||
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 ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} ssl crypto)
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} ssl crypto)
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -22,7 +15,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
set(LIBNAME "PocoUtil")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
set( BASE_SRCS
|
||||
src/AbstractConfiguration.cpp
|
||||
@ -44,16 +43,10 @@ endif(CMAKE_SYSTEM MATCHES "Windows")
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoXML PocoFoundation)
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoXMLd PocoFoundationd )
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -61,7 +54,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,21 +1,14 @@
|
||||
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 ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoNet PocoUtil PocoXML PocoFoundation )
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoNetd PocoUtild PocoXMLd PocoFoundationd )
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -23,7 +16,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
set(LIBNAME "PocoExtJS")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
include_directories( include src )
|
||||
|
||||
@ -10,18 +9,11 @@ add_definitions(-DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMI
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION}
|
||||
SOVERSION ${SHARED_LIBRARY_VERSION})
|
||||
target_link_libraries( ${LIBNAME} PocoWebWidgets PocoData )
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION}
|
||||
SOVERSION ${SHARED_LIBRARY_VERSION})
|
||||
target_link_libraries( ${LIBNAMED} PocoWebWidgetsd PocoDatad )
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -29,7 +21,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
set(LIBNAME "PocoXML")
|
||||
set(LIBNAMED "${LIBNAME}d")
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
@ -7,16 +6,10 @@ 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}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoFoundation)
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoFoundationd)
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -24,7 +17,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
@ -1,20 +1,13 @@
|
||||
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 ${RELEASE_CXX_FLAGS}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoUtil PocoXML PocoFoundation)
|
||||
|
||||
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAMED}
|
||||
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAMED} PocoUtild PocoXMLd PocoFoundationd)
|
||||
|
||||
install(
|
||||
DIRECTORY include/Poco
|
||||
DESTINATION include
|
||||
@ -22,7 +15,7 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS ${LIBNAME} ${LIBNAMED}
|
||||
TARGETS ${LIBNAME}
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user