mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-08 04:05:26 +02:00
cmake: Data cleanup
- explicitly list files - use find_package for MySQL and ODBC - remove unused code - remove unnecessary include dirs - support unbundled SQLite3 - replace tabs by spaces Reviewed-by: Roger Meier <r.meier@siemens.com>
This commit is contained in:
@@ -1,17 +1,26 @@
|
||||
set(LIBNAME "PocoDataMySQL")
|
||||
|
||||
set(SRCS "")
|
||||
aux_source_directory(src SRCS)
|
||||
set(SRCS
|
||||
src/Binder.cpp
|
||||
src/Connector.cpp
|
||||
src/Extractor.cpp
|
||||
src/MySQLException.cpp
|
||||
src/MySQLStatementImpl.cpp
|
||||
src/ResultMetadata.cpp
|
||||
src/SessionHandle.cpp
|
||||
src/SessionImpl.cpp
|
||||
src/StatementExecutor.cpp
|
||||
src/Utility.cpp
|
||||
)
|
||||
|
||||
add_definitions(-DTHREADSAFE -DNO_TCL)
|
||||
|
||||
include_directories( include ${MYSQL_INCLUDE_DIR})
|
||||
#link_directories( )
|
||||
|
||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||
set_target_properties( ${LIBNAME}
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
PROPERTIES
|
||||
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||
target_link_libraries( ${LIBNAME} PocoData PocoFoundation ${MYSQL_LIB})
|
||||
|
||||
install(
|
||||
@@ -28,5 +37,5 @@ install(
|
||||
)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
add_subdirectory(testsuite)
|
||||
add_subdirectory(testsuite)
|
||||
endif ()
|
||||
|
Reference in New Issue
Block a user