Also build and run testsuite on cmake CI tests.

This commit is contained in:
Joachim Bauch
2016-09-20 22:58:17 +02:00
parent f5c9db8b5c
commit 184113ca09
6 changed files with 40 additions and 5 deletions
+14
View File
@@ -0,0 +1,14 @@
set (sources_testsuite
TestSuite.c
)
if (NOT MSVC)
set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-static")
set (CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "-static")
endif ()
add_executable (TestSuite ${sources_testsuite})
target_link_libraries ("TestSuite" "MemoryModule")
if (NOT MSVC)
set_target_properties ("TestSuite" PROPERTIES SUFFIX ".exe")
endif ()