cmake scripts for all tests

This commit is contained in:
Marian Krivos
2009-02-21 20:19:53 +00:00
parent fa1658b23a
commit ac01609444
21 changed files with 408 additions and 9 deletions

View File

@@ -33,4 +33,4 @@ install(
DESTINATION lib
)
#add_subdirectory( testsuite )
add_subdirectory( testsuite )

View File

@@ -0,0 +1,19 @@
set( TEST_SRCS
src/Driver.cpp
src/MySQLTest.cpp
src/MySQLTestSuite.cpp
src/SQLExecutor.cpp
)
#include_directories()
set( WIN_TEST_SRCS
src/WinDriver.cpp
)
set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} )
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoMySQL PocoData PocoFoundation CppUnit pthread)