mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-04 01:27:11 +02:00

* remove leftover progen files * remove Data sources and turn headers into forwards * add SQL files #2059 * Data2sql: adjust Travis, AppVeyor & Makefiles (#2069) * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * fix header forwarding * Data2sql: Fixes for complete Travis CI success (#2071) * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Restore DataFormatException * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * Replace Data by SQL * construct RowFilter from RecordSet reference instead of pointer * pass Container ref instead of ptr to Column * elimitate g++ warnings * SQL: remove raw pointers from interfaces #2094; add constness and move ops where appropriate * tidy up Postgres * ODBC fixes
29 lines
743 B
CMake
29 lines
743 B
CMake
set(TESTUNIT "${LIBNAME}-testrunner")
|
|
|
|
# Sources
|
|
file(GLOB SRCS_G "src/*.cpp")
|
|
POCO_SOURCES_AUTO( TEST_SRCS ${SRCS_G})
|
|
|
|
# Headers
|
|
file(GLOB_RECURSE HDRS_G "src/*.h" )
|
|
POCO_HEADERS_AUTO( TEST_SRCS ${HDRS_G})
|
|
|
|
POCO_SOURCES_AUTO_PLAT( TEST_SRCS OFF
|
|
src/WinDriver.cpp
|
|
)
|
|
|
|
POCO_SOURCES_AUTO_PLAT( TEST_SRCS WINCE
|
|
src/WinCEDriver.cpp
|
|
)
|
|
|
|
#TODO: Why is this file there? It doesn't compile if it is include in the sources
|
|
POCO_SOURCES_AUTO_PLAT( TEST_SRCS OFF
|
|
src/StatementImpl.cpp
|
|
)
|
|
|
|
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
|
add_test(NAME ${LIBNAME} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${TESTUNIT} -all)
|
|
|
|
target_link_libraries( ${TESTUNIT} ${CMAKE_THREAD_LIBS_INIT} PocoSQL PocoUtil PocoXML PocoFoundation PocoCppUnit)
|
|
|