[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.10 1.11 perconfig.c NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Mar 16 10:51:34 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/Testing
In directory public:/mounts/ram/cvs-serv30106/Tests/Testing
Modified Files:
CMakeLists.txt
Added Files:
perconfig.c
Log Message:
ENH: Add NAME mode to ADD_TEST command
This creates command mode add_test(NAME ...). This signature is
extensible with more keyword arguments later. The main purpose is to
enable automatic replacement of target names with built target file
locations. A side effect of this feature is support for tests that only
run under specific configurations.
--- NEW FILE: perconfig.c ---
int main()
{
return 0;
}
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Testing/CMakeLists.txt,v
retrieving revision 1.10
retrieving revision 1.11
diff -C 2 -d -r1.10 -r1.11
*** CMakeLists.txt 18 Dec 2008 17:28:04 -0000 1.10
--- CMakeLists.txt 16 Mar 2009 14:51:26 -0000 1.11
***************
*** 2,6 ****
# Testing
#
! cmake_minimum_required (VERSION 2.6)
PROJECT (Testing)
--- 2,6 ----
# Testing
#
! cmake_minimum_required (VERSION 2.7)
PROJECT (Testing)
***************
*** 53,54 ****
--- 53,60 ----
#
ADD_SUBDIRECTORY(Sub/Sub2)
+
+ # Per-config target name test.
+ ADD_EXECUTABLE(perconfig perconfig.c)
+ SET_PROPERTY(TARGET perconfig PROPERTY RELEASE_POSTFIX -opt)
+ SET_PROPERTY(TARGET perconfig PROPERTY DEBUG_POSTFIX -dbg)
+ ADD_TEST(NAME testing.perconfig COMMAND perconfig)
More information about the Cmake-commits
mailing list