diff options
-rw-r--r-- | Tests/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Tests/Policy0002/A/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/Policy0002/CMakeLists.txt | 5 | ||||
-rw-r--r-- | Tests/Policy0002/policy0002.c | 4 |
4 files changed, 13 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index ddebfc6..a9eb5a0 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -124,6 +124,9 @@ IF(BUILD_TESTING) ADD_TEST_MACRO(ExportImport ExportImport) ADD_TEST_MACRO(Unset Unset) ADD_TEST_MACRO(PolicyScope PolicyScope) + IF("${CMAKE_TEST_GENERATOR}" MATCHES "Make") + ADD_TEST_MACRO(Policy0002 Policy0002) + ENDIF("${CMAKE_TEST_GENERATOR}" MATCHES "Make") SET(CMAKE_BUILD_TEST_SOURCE_DIR "${CMake_SOURCE_DIR}/Tests/COnly") SET(CMAKE_BUILD_TEST_BINARY_DIR "${CMake_BINARY_DIR}/Tests/CMakeBuildCOnly") diff --git a/Tests/Policy0002/A/CMakeLists.txt b/Tests/Policy0002/A/CMakeLists.txt new file mode 100644 index 0000000..cee6422 --- /dev/null +++ b/Tests/Policy0002/A/CMakeLists.txt @@ -0,0 +1 @@ +add_executable(Policy0002 ../policy0002.c) diff --git a/Tests/Policy0002/CMakeLists.txt b/Tests/Policy0002/CMakeLists.txt new file mode 100644 index 0000000..0f6d331 --- /dev/null +++ b/Tests/Policy0002/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 2.6) +project(Policy0002 C) +cmake_policy(SET CMP0002 OLD) +add_subdirectory(A) +add_executable(Policy0002 policy0002.c) diff --git a/Tests/Policy0002/policy0002.c b/Tests/Policy0002/policy0002.c new file mode 100644 index 0000000..8488f4e --- /dev/null +++ b/Tests/Policy0002/policy0002.c @@ -0,0 +1,4 @@ +int main(void) +{ + return 0; +} |