mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-26 16:32:45 +01:00
cmake build system cleanup
This commit is contained in:
parent
ddaceef0ec
commit
b59d198396
@ -4,6 +4,10 @@ set(SRCS "")
|
||||
aux_source_directory(src SRCS)
|
||||
include_directories( SQLite/include )
|
||||
|
||||
if (NOT POCO_STATIC)
|
||||
add_definitions(-DData_EXPORTS -DTHREADSAFE -DODBC_EXPORTS -DMySQL_EXPORTS -DSQLite_EXPORTS)
|
||||
endif (NOT POCO_STATIC)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES
|
||||
|
@ -188,7 +188,7 @@ set(LIN_SRCS
|
||||
|
||||
if(CMAKE_SYSTEM MATCHES "Windows")
|
||||
set(SRCS ${BASE_SRCS} ${WIN_SRCS})
|
||||
add_definitions( -DPOCO_NO_FPENVIRONMENT -DPCRE_STATIC -DFoundation_EXPORTS)
|
||||
add_definitions( -DPCRE_STATIC -DFoundation_EXPORTS)
|
||||
set(SYSLIBS ${SYSLIBS} iphlpapi)
|
||||
else (CMAKE_SYSTEM MATCHES "Windows")
|
||||
set(SRCS ${BASE_SRCS} ${LIN_SRCS})
|
||||
|
@ -1,6 +1,11 @@
|
||||
set(LIBNAME "PocoNetSSL")
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
include_directories( ${OPENSSL_INCLUDE_DIR} )
|
||||
|
||||
if (NOT POCO_STATIC)
|
||||
add_definitions(-DNetSSL_EXPORTS)
|
||||
endif (NOT POCO_STATIC)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
|
@ -37,6 +37,7 @@ src/WinService.cpp
|
||||
|
||||
if(CMAKE_SYSTEM MATCHES "Windows")
|
||||
set(SRCS ${BASE_SRCS} ${WIN_SRCS})
|
||||
add_definitions(-DUtil_EXPORTS)
|
||||
else (CMAKE_SYSTEM MATCHES "Windows")
|
||||
set(SRCS ${BASE_SRCS})
|
||||
endif(CMAKE_SYSTEM MATCHES "Windows")
|
||||
|
@ -3,6 +3,10 @@ set(LIBNAME "PocoWebWidgets")
|
||||
set(SRCS "")
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
if (NOT POCO_STATIC)
|
||||
add_definitions(-DWebWidgets_EXPORTS)
|
||||
endif (NOT POCO_STATIC)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES
|
||||
|
@ -5,7 +5,9 @@ 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)
|
||||
if (NOT POCO_STATIC)
|
||||
add_definitions(-DExtJS_EXPORTS)
|
||||
endif (NOT POCO_STATIC)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
|
@ -2,7 +2,7 @@ set(LIBNAME "PocoXML")
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
add_definitions(-DXML_NS -DXML_DTD -DHAVE_EXPAT_CONFIG_H)
|
||||
add_definitions(-D_USRDLL -DXML_NS -DXML_DTD -DHAVE_EXPAT_CONFIG_H -DXML_EXPORTS)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
|
@ -2,6 +2,10 @@ set(LIBNAME "PocoZip")
|
||||
|
||||
aux_source_directory(src SRCS)
|
||||
|
||||
if (NOT POCO_STATIC)
|
||||
add_definitions(-DZip_EXPORTS)
|
||||
endif (NOT POCO_STATIC)
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES
|
||||
|
Loading…
x
Reference in New Issue
Block a user