]> granicus.if.org Git - gc/commitdiff
CMake: add gctest as a test
authorAndy Li <andy@onthewings.net>
Sat, 6 Aug 2016 16:23:11 +0000 (00:23 +0800)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 10 Aug 2016 10:34:54 +0000 (13:34 +0300)
* CMakeLists.txt: Include CTest.
* tests/CMakeLists.txt: Add gctest as test.

CMakeLists.txt
tests/CMakeLists.txt

index 40c04163b2ffe97b35a817bfcf82b9d3b5ad3134..4b33ab2f8382c5ae9249daa04b6fe098ff1d28c4 100644 (file)
@@ -25,6 +25,8 @@ SET(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
 
 PROJECT(gc)
 
+INCLUDE(CTest)
+
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 
 ADD_DEFINITIONS("-D_CRT_SECURE_NO_DEPRECATE
index 0f4d455f6203ee3263d858433053e0cb840f6584..a24872c95c2a53bbf9f83e6f3df7e7e6c9e402db 100644 (file)
@@ -17,3 +17,4 @@
 ADD_DEFINITIONS(-DGC_NOT_DLL)
 ADD_EXECUTABLE(gctest WIN32 test.c)
 TARGET_LINK_LIBRARIES(gctest gc-lib)
+ADD_TEST(NAME gctest COMMAND gctest)