diff options
Diffstat (limited to 'Tests/Testing')
-rw-r--r-- | Tests/Testing/CMakeLists.txt | 8 | ||||
-rw-r--r-- | Tests/Testing/perconfig.c | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/Tests/Testing/CMakeLists.txt b/Tests/Testing/CMakeLists.txt index 5a15f11..462f20f 100644 --- a/Tests/Testing/CMakeLists.txt +++ b/Tests/Testing/CMakeLists.txt @@ -1,7 +1,7 @@ # # Testing # -cmake_minimum_required (VERSION 2.6) +cmake_minimum_required (VERSION 2.7) PROJECT (Testing) # @@ -52,3 +52,9 @@ ADD_TEST(testing.1 ${Testing_BINARY_DIR}/bin/testing) # skip level test # 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) diff --git a/Tests/Testing/perconfig.c b/Tests/Testing/perconfig.c new file mode 100644 index 0000000..f8b643a --- /dev/null +++ b/Tests/Testing/perconfig.c @@ -0,0 +1,4 @@ +int main() +{ + return 0; +} |