1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Tests: Factor out RunCMake.GenEx-DEVICE_LINK test

Move the `DEVICE_LINK` cases out of `RunCMake.GeneratorExpression`.
This commit is contained in:
Brad King
2020-06-15 14:34:51 -04:00
parent 64a8587332
commit fbead761fe
44 changed files with 21 additions and 15 deletions

View File

@@ -224,6 +224,7 @@ add_RunCMake_test(GenEx-COMPILE_LANG_AND_ID)
add_RunCMake_test(GenEx-LINK_LANGUAGE)
add_RunCMake_test(GenEx-LINK_LANG_AND_ID)
add_RunCMake_test(GenEx-HOST_LINK)
add_RunCMake_test(GenEx-DEVICE_LINK)
add_RunCMake_test(GeneratorExpression)
add_RunCMake_test(GeneratorInstance)
add_RunCMake_test(GeneratorPlatform)

View File

@@ -0,0 +1,3 @@
cmake_minimum_required(VERSION 3.18)
project(${RunCMake_TEST} NONE)
include(${RunCMake_TEST}.cmake)

View File

@@ -0,0 +1,17 @@
include(RunCMake)
run_cmake(DEVICE_LINK-add_custom_target)
run_cmake(DEVICE_LINK-add_custom_command)
run_cmake(DEVICE_LINK-install)
run_cmake(DEVICE_LINK-add_executable)
run_cmake(DEVICE_LINK-add_library)
run_cmake(DEVICE_LINK-add_test)
run_cmake(DEVICE_LINK-target_sources)
run_cmake(DEVICE_LINK-target_compile_definitions)
run_cmake(DEVICE_LINK-target_compile_options)
run_cmake(DEVICE_LINK-target_include_directories)
run_cmake(DEVICE_LINK-target_link_libraries)
run_cmake(DEVICE_LINK-target_link_directories)
if(RunCMake_GENERATOR MATCHES "(Ninja|Makefile)")
run_cmake(DEVICE_LINK-link_depends)
endif()

View File

View File

@@ -23,21 +23,6 @@ run_cmake(NonValidTarget-TARGET_BUNDLE_DIR)
run_cmake(NonValidTarget-TARGET_BUNDLE_CONTENT_DIR)
run_cmake(NonValidTarget-TARGET_PROPERTY)
run_cmake(NonValidTarget-TARGET_POLICY)
run_cmake(DEVICE_LINK-add_custom_target)
run_cmake(DEVICE_LINK-add_custom_command)
run_cmake(DEVICE_LINK-install)
run_cmake(DEVICE_LINK-add_executable)
run_cmake(DEVICE_LINK-add_library)
run_cmake(DEVICE_LINK-add_test)
run_cmake(DEVICE_LINK-target_sources)
run_cmake(DEVICE_LINK-target_compile_definitions)
run_cmake(DEVICE_LINK-target_compile_options)
run_cmake(DEVICE_LINK-target_include_directories)
run_cmake(DEVICE_LINK-target_link_libraries)
run_cmake(DEVICE_LINK-target_link_directories)
if(RunCMake_GENERATOR MATCHES "(Ninja|Makefile)")
run_cmake(DEVICE_LINK-link_depends)
endif()
run_cmake(TARGET_FILE-recursion)
run_cmake(OUTPUT_NAME-recursion)
run_cmake(TARGET_FILE_PREFIX)