Revision a6b09085715d0d7f299e9ca76a4835ce5f5acfaf authored by Brad King on 09 March 2015, 13:25:16 UTC, committed by Brad King on 09 March 2015, 17:36:46 UTC
Simply check for whether the local generator has a parent instead of
depending on a string comparison of directory names.
1 parent 99575c9
Raw File
CMakeLists.txt
cmake_minimum_required (VERSION 2.6)
project(CTestTestParallel)
include(CTest)

add_executable (LockFile lockFile.c)

add_test (TestRunSerial1 LockFile)
add_test (TestRunSerial2 LockFile)
set_tests_properties(TestRunSerial1 TestRunSerial2 PROPERTIES RUN_SERIAL true)

add_test (TestProcessorsGreaterThanMPL1 LockFile)
add_test (TestProcessorsGreaterThanMPL2 LockFile)
set_tests_properties(TestProcessorsGreaterThanMPL1 PROPERTIES PROCESSORS 10)
set_tests_properties(TestProcessorsGreaterThanMPL1 PROPERTIES DEPENDS
                     TestProcessorsGreaterThanMPL2)
back to top