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

@@ -27,4 +27,5 @@ install(
DESTINATION lib
)
add_subdirectory( samples )
add_subdirectory( samples )
add_subdirectory( testsuite )

View File

@@ -0,0 +1,25 @@
set( TEST_SRCS
src/Driver.cpp
src/HTTPSClientSessionTest.cpp
src/HTTPSClientTestSuite.cpp
src/HTTPSServerTest.cpp
src/HTTPSServerTestSuite.cpp
src/HTTPSStreamFactoryTest.cpp
src/HTTPSTestServer.cpp
src/NetSSLTestSuite.cpp
src/TCPServerTest.cpp
src/TCPServerTestSuite.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} PocoNetSSL PocoNet PocoUtil PocoXML PocoFoundation CppUnit pthread)