diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-06-17 08:51:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-06-17 12:02:33 (GMT) |
commit | 0951b1fe072da311e9adb55337ef364e2b6c01d0 (patch) | |
tree | d913a6530d58ae2e9197614107143a4cf8f8ba39 /Tests/RunCMake/target_link_libraries | |
parent | 2ae33f7ace90c0fbe0fae43de5a55d5d31dde4bc (diff) | |
download | CMake-0951b1fe072da311e9adb55337ef364e2b6c01d0.zip CMake-0951b1fe072da311e9adb55337ef364e2b6c01d0.tar.gz CMake-0951b1fe072da311e9adb55337ef364e2b6c01d0.tar.bz2 |
Tests: Split RunCMake.target_link_libraries test
Fixes: #20836
Diffstat (limited to 'Tests/RunCMake/target_link_libraries')
22 files changed, 0 insertions, 327 deletions
diff --git a/Tests/RunCMake/target_link_libraries/AliasTargets.cmake b/Tests/RunCMake/target_link_libraries/AliasTargets.cmake deleted file mode 100644 index 73f8a7d..0000000 --- a/Tests/RunCMake/target_link_libraries/AliasTargets.cmake +++ /dev/null @@ -1,36 +0,0 @@ - -cmake_minimum_required(VERSION 3.16...3.17) - -enable_language(C) - -add_library (func SHARED func.c) - -set (binary_dir "${CMAKE_BINARY_DIR}") -get_property (is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) -if (is_multi_config) - string (APPEND binary_dir "/Release") -endif() - - -add_library(import-local SHARED IMPORTED) -set_property(TARGET import-local PROPERTY IMPORTED_LOCATION "${binary_dir}/${CMAKE_STATIC_LIBRARY_PREFIX}func${CMAKE_SHARED_LIBRARY_SUFFIX}") -set_property(TARGET import-local PROPERTY IMPORTED_IMPLIB "${binary_dir}/${CMAKE_STATIC_LIBRARY_PREFIX}func${CMAKE_IMPORT_LIBRARY_SUFFIX}") -add_library(alias-local ALIAS import-local) - -add_library (lib-local SHARED lib.c) -target_link_libraries (lib-local PRIVATE import-local) - -add_executable (main-local main.c) -target_link_libraries (main-local PRIVATE import-local) - - -add_library(import-global SHARED IMPORTED GLOBAL) -set_property(TARGET import-global PROPERTY IMPORTED_LOCATION "${binary_dir}/${CMAKE_STATIC_LIBRARY_PREFIX}func${CMAKE_SHARED_LIBRARY_SUFFIX}") -set_property(TARGET import-global PROPERTY IMPORTED_IMPLIB "${binary_dir}/${CMAKE_STATIC_LIBRARY_PREFIX}func${CMAKE_IMPORT_LIBRARY_SUFFIX}") -add_library(alias-global ALIAS import-global) - -add_library (lib-global SHARED lib.c) -target_link_libraries (lib-global PRIVATE import-global) - -add_executable (main-global main.c) -target_link_libraries (main-global PRIVATE import-global) diff --git a/Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake b/Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake index 1f4077c..189592d 100644 --- a/Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake +++ b/Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake @@ -30,71 +30,3 @@ run_cmake(StaticPrivateDepNotExported) run_cmake(StaticPrivateDepNotTarget) run_cmake(UNKNOWN-IMPORTED-GLOBAL) run_cmake(empty_keyword_args) - -macro(run_cmake_target test subtest target) - set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${test}-build) - set(RunCMake_TEST_NO_CLEAN 1) - run_cmake_command(${test}-${subtest} ${CMAKE_COMMAND} --build . --target ${target} ${ARGN}) - - unset(RunCMake_TEST_BINARY_DIR) - unset(RunCMake_TEST_NO_CLEAN) -endmacro() - -set(RunCMake_TEST_OUTPUT_MERGE TRUE) -if (NOT RunCMake_GENERATOR_IS_MULTI_CONFIG) - set(RunCMake_TEST_OPTIONS -DCMAKE_BUILD_TYPE=Release) -endif() -run_cmake(AliasTargets) -run_cmake_target(AliasTargets func func --config Release) -run_cmake_target(AliasTargets lib-local lib-local --config Release) -run_cmake_target(AliasTargets main-local main-local --config Release) -run_cmake_target(AliasTargets lib-global lib-global --config Release) -run_cmake_target(AliasTargets main-global main-global --config Release) -unset(RunCMake_TEST_OPTIONS) -unset(RunCMake_TEST_OUTPUT_MERGE) - -run_cmake(genex_LINK_LANGUAGE-bad-usage) - -if (RunCMake_GENERATOR MATCHES "Makefiles|Ninja|Visual Studio|Xcode|Watcom WMake") - - run_cmake(genex_LINK_LANGUAGE-bad-mix-lang) - run_cmake(genex_LINK_LANG_AND_ID-bad-mix-lang) - - set(RunCMake_TEST_OUTPUT_MERGE TRUE) - if (NOT RunCMake_GENERATOR_IS_MULTI_CONFIG) - set(RunCMake_TEST_OPTIONS -DCMAKE_BUILD_TYPE=Release) - endif() - - run_cmake(genex_LINK_LANGUAGE) - - run_cmake_target(genex_LINK_LANGUAGE lib LinkLibraries_lib --config Release) - run_cmake_target(genex_LINK_LANGUAGE lib2 LinkLibraries_lib2 --config Release) - run_cmake_target(genex_LINK_LANGUAGE lib3 LinkLibraries_lib3 --config Release) - run_cmake_target(genex_LINK_LANGUAGE exe LinkLibraries_exe --config Release) - run_cmake_target(genex_LINK_LANGUAGE C_import LinkLibraries_C_import --config Release) - run_cmake_target(genex_LINK_LANGUAGE CXX_import LinkLibraries_CXX_import --config Release) - run_cmake_target(genex_LINK_LANGUAGE C_interface LinkLibraries_C_interface --config Release) - run_cmake_target(genex_LINK_LANGUAGE CXX_interface LinkLibraries_CXX_interface --config Release) - run_cmake_target(genex_LINK_LANGUAGE C_interface2 LinkLibraries_C_interface2 --config Release) - run_cmake_target(genex_LINK_LANGUAGE CXX_interface2 LinkLibraries_CXX_interface2 --config Release) - run_cmake_target(genex_LINK_LANGUAGE C_static LinkLibraries_C_static --config Release) - run_cmake_target(genex_LINK_LANGUAGE CXX_static LinkLibraries_CXX_static --config Release) - - run_cmake(genex_LINK_LANG_AND_ID) - - run_cmake_target(genex_LINK_LANG_AND_ID lib LinkLibraries_lib --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID lib2 LinkLibraries_lib2 --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID lib3 LinkLibraries_lib3 --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID exe LinkLibraries_exe --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID C_import LinkLibraries_C_import --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID CXX_import LinkLibraries_CXX_import --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID C_interface LinkLibraries_C_interface --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID CXX_interface LinkLibraries_CXX_interface --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID C_interface2 LinkLibraries_C_interface2 --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID CXX_interface2 LinkLibraries_CXX_interface2 --config Release) - run_cmake_target(genex_LINK_LANG_AND_ID CXX_static LinkLibraries_CXX_static --config Release) - - unset(RunCMake_TEST_OPTIONS) - unset(RunCMake_TEST_OUTPUT_MERGE) - -endif() diff --git a/Tests/RunCMake/target_link_libraries/func.c b/Tests/RunCMake/target_link_libraries/func.c deleted file mode 100644 index 415a9bf..0000000 --- a/Tests/RunCMake/target_link_libraries/func.c +++ /dev/null @@ -1,7 +0,0 @@ - -#if defined(_WIN32) -__declspec(dllexport) -#endif - void func_c() -{ -} diff --git a/Tests/RunCMake/target_link_libraries/func.cxx b/Tests/RunCMake/target_link_libraries/func.cxx deleted file mode 100644 index a12caca..0000000 --- a/Tests/RunCMake/target_link_libraries/func.cxx +++ /dev/null @@ -1,7 +0,0 @@ - -#if defined(_WIN32) -__declspec(dllexport) -#endif - void func_cxx() -{ -} diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-mix-lang-result.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-mix-lang-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-mix-lang-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-mix-lang-stderr.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-mix-lang-stderr.txt deleted file mode 100644 index 2ecdc0c..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-mix-lang-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error: Evaluation of \$<LINK_LANGUAGE:...> or \$<LINK_LAND_AND_ID:...> changes -the linker language for target "LinkLibraries_bad_mix_languages" \(from 'C' to 'CXX'\) which is invalid. diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-mix-lang.cmake b/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-mix-lang.cmake deleted file mode 100644 index e8efa75..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-mix-lang.cmake +++ /dev/null @@ -1,8 +0,0 @@ - -enable_language(C) -enable_language(CXX) - -add_library(static_CXX STATIC func.cxx) - -add_executable(LinkLibraries_bad_mix_languages main.c) -target_link_libraries (LinkLibraries_bad_mix_languages PRIVATE $<$<LINK_LANGUAGE:C>:static_CXX>) diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-usage-result.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-usage-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-usage-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-usage-stderr.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-usage-stderr.txt deleted file mode 100644 index 469f1fe..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-usage-stderr.txt +++ /dev/null @@ -1,8 +0,0 @@ -CMake Error at genex_LINK_LANGUAGE-bad-usage.cmake:4 \(target_link_libraries\): - Error evaluating generator expression: - - \$<LINK_LANGUAGE> - - \$<LINK_LANGUAGE> is not supported in link libraries expression. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-usage.cmake b/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-usage.cmake deleted file mode 100644 index 81cfb0c..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE-bad-usage.cmake +++ /dev/null @@ -1,4 +0,0 @@ -enable_language(C) - -add_library(simple SHARED empty.c) -target_link_libraries(simple PRIVATE lib$<LINK_LANGUAGE>) diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE.cmake b/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE.cmake deleted file mode 100644 index f3fe955..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANGUAGE.cmake +++ /dev/null @@ -1,72 +0,0 @@ - -cmake_minimum_required(VERSION 3.16...3.17) - -enable_language(C) -enable_language(CXX) - -add_library(shared_C SHARED func.c) -add_library(shared_CXX SHARED func.cxx) - - -add_library(static1_C STATIC empty.c) -target_link_libraries (static1_C INTERFACE $<$<LINK_LANGUAGE:C>:shared_C>) - -add_library(static2_C STATIC empty.c) -target_link_libraries (static2_C PRIVATE $<$<LINK_LANGUAGE:C>:shared_C>) - - -set (binary_dir "${CMAKE_BINARY_DIR}") -get_property (is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) -if (is_multi_config) - string (APPEND binary_dir "/Release") -endif() -add_library(import STATIC IMPORTED) -set_property(TARGET import PROPERTY IMPORTED_LOCATION "${binary_dir}/${CMAKE_STATIC_LIBRARY_PREFIX}static1_C${CMAKE_STATIC_LIBRARY_SUFFIX}") -target_link_libraries (import INTERFACE $<$<LINK_LANGUAGE:C>:shared_C>) -target_link_libraries (import INTERFACE $<$<LINK_LANGUAGE:CXX>:shared_CXX>) - - -add_library(interface INTERFACE) -target_link_libraries (interface INTERFACE $<$<LINK_LANGUAGE:C>:shared_C> - $<$<LINK_LANGUAGE:CXX>:shared_CXX>) - - -add_library(interface2 INTERFACE) -target_link_libraries (interface2 INTERFACE import) - - -add_library(static3 STATIC empty.c) -target_link_libraries (static3 PRIVATE interface) - - -add_library(LinkLibraries_lib SHARED lib.c) -target_link_libraries (LinkLibraries_lib PRIVATE $<$<LINK_LANGUAGE:C>:shared_C>) - -add_library(LinkLibraries_lib2 SHARED lib.c) -target_link_libraries (LinkLibraries_lib2 PRIVATE $<$<LINK_LANGUAGE:C>:static1_C>) - -add_library(LinkLibraries_lib3 SHARED lib.c) -target_link_libraries (LinkLibraries_lib3 PRIVATE $<$<LINK_LANGUAGE:C>:static2_C>) - -add_executable(LinkLibraries_exe main.c) -target_link_libraries (LinkLibraries_exe PRIVATE $<$<LINK_LANGUAGE:C>:shared_C>) - -add_executable(LinkLibraries_C_import main.c) -target_link_libraries (LinkLibraries_C_import PRIVATE import) -add_executable(LinkLibraries_CXX_import main.cxx) -target_link_libraries (LinkLibraries_CXX_import PRIVATE import) - -add_executable(LinkLibraries_C_interface main.c) -target_link_libraries (LinkLibraries_C_interface PRIVATE interface) -add_executable(LinkLibraries_CXX_interface main.cxx) -target_link_libraries (LinkLibraries_CXX_interface PRIVATE interface) - -add_executable(LinkLibraries_C_interface2 main.c) -target_link_libraries (LinkLibraries_C_interface2 PRIVATE interface2) -add_executable(LinkLibraries_CXX_interface2 main.cxx) -target_link_libraries (LinkLibraries_CXX_interface2 PRIVATE interface2) - -add_executable(LinkLibraries_C_static main.c) -target_link_libraries (LinkLibraries_C_static PRIVATE static3) -add_executable(LinkLibraries_CXX_static main.cxx) -target_link_libraries (LinkLibraries_CXX_static PRIVATE static3) diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-bad-mix-lang-result.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-bad-mix-lang-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-bad-mix-lang-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-bad-mix-lang-stderr.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-bad-mix-lang-stderr.txt deleted file mode 100644 index 2ecdc0c..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-bad-mix-lang-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -CMake Error: Evaluation of \$<LINK_LANGUAGE:...> or \$<LINK_LAND_AND_ID:...> changes -the linker language for target "LinkLibraries_bad_mix_languages" \(from 'C' to 'CXX'\) which is invalid. diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-bad-mix-lang.cmake b/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-bad-mix-lang.cmake deleted file mode 100644 index f80010a..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-bad-mix-lang.cmake +++ /dev/null @@ -1,8 +0,0 @@ - -enable_language(C) -enable_language(CXX) - -add_library(static_CXX STATIC func.cxx) - -add_executable(LinkLibraries_bad_mix_languages main.c) -target_link_libraries (LinkLibraries_bad_mix_languages PRIVATE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:static_CXX>) diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-basic-result.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-basic-result.txt deleted file mode 100644 index 8d98f9d..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-basic-result.txt +++ /dev/null @@ -1 +0,0 @@ -.* diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-exe_c-result.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-exe_c-result.txt deleted file mode 100644 index 8d98f9d..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-exe_c-result.txt +++ /dev/null @@ -1 +0,0 @@ -.* diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-exe_cxx-result.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-exe_cxx-result.txt deleted file mode 100644 index 8d98f9d..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-exe_cxx-result.txt +++ /dev/null @@ -1 +0,0 @@ -.* diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-interface-result.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-interface-result.txt deleted file mode 100644 index 8d98f9d..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-interface-result.txt +++ /dev/null @@ -1 +0,0 @@ -.* diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-no_language-result.txt b/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-no_language-result.txt deleted file mode 100644 index 573541a..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID-no_language-result.txt +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID.cmake b/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID.cmake deleted file mode 100644 index 9feccd0..0000000 --- a/Tests/RunCMake/target_link_libraries/genex_LINK_LANG_AND_ID.cmake +++ /dev/null @@ -1,73 +0,0 @@ - -cmake_minimum_required(VERSION 3.16...3.17) - -enable_language(C) -enable_language(CXX) - - -add_library(shared_C SHARED func.c) -add_library(shared_CXX SHARED func.cxx) - - -add_library(static1_C STATIC empty.c) -target_link_libraries (static1_C INTERFACE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:shared_C>) - -add_library(static2_C STATIC empty.c) -target_link_libraries (static2_C PRIVATE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:shared_C>) - - -set (binary_dir "${CMAKE_BINARY_DIR}") -get_property (is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) -if (is_multi_config) - string (APPEND binary_dir "/Release") -endif() -add_library(import STATIC IMPORTED) -set_property(TARGET import PROPERTY IMPORTED_LOCATION "${binary_dir}/${CMAKE_STATIC_LIBRARY_PREFIX}static1_C${CMAKE_STATIC_LIBRARY_SUFFIX}") -target_link_libraries (import INTERFACE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:shared_C>) -target_link_libraries (import INTERFACE $<$<LINK_LANG_AND_ID:CXX,${CMAKE_CXX_COMPILER_ID}>:shared_CXX>) - - -add_library(interface INTERFACE) -target_link_libraries (interface INTERFACE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:shared_C> - $<$<LINK_LANG_AND_ID:CXX,${CMAKE_CXX_COMPILER_ID}>:shared_CXX>) - - -add_library(interface2 INTERFACE) -target_link_libraries (interface2 INTERFACE import) - - -add_library(static3 STATIC empty.c) -target_link_libraries (static3 PRIVATE interface) - - -add_library(LinkLibraries_lib SHARED lib.c) -target_link_libraries (LinkLibraries_lib PRIVATE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:shared_C>) - -add_library(LinkLibraries_lib2 SHARED lib.c) -target_link_libraries (LinkLibraries_lib2 PRIVATE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:static1_C>) - -add_library(LinkLibraries_lib3 SHARED lib.c) -target_link_libraries (LinkLibraries_lib3 PRIVATE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:static2_C>) - -add_executable(LinkLibraries_exe main.c) -target_link_libraries (LinkLibraries_exe PRIVATE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:shared_C>) - -add_executable(LinkLibraries_C_import main.c) -target_link_libraries (LinkLibraries_C_import PRIVATE import) -add_executable(LinkLibraries_CXX_import main.cxx) -target_link_libraries (LinkLibraries_CXX_import PRIVATE import) - -add_executable(LinkLibraries_C_interface main.c) -target_link_libraries (LinkLibraries_C_interface PRIVATE interface) -add_executable(LinkLibraries_CXX_interface main.cxx) -target_link_libraries (LinkLibraries_CXX_interface PRIVATE interface) - -add_executable(LinkLibraries_C_interface2 main.c) -target_link_libraries (LinkLibraries_C_interface2 PRIVATE interface2) -add_executable(LinkLibraries_CXX_interface2 main.cxx) -target_link_libraries (LinkLibraries_CXX_interface2 PRIVATE interface2) - -add_executable(LinkLibraries_C_static main.c) -target_link_libraries (LinkLibraries_C_static PRIVATE static3) -add_executable(LinkLibraries_CXX_static main.cxx) -target_link_libraries (LinkLibraries_CXX_static PRIVATE static3) diff --git a/Tests/RunCMake/target_link_libraries/main.c b/Tests/RunCMake/target_link_libraries/main.c deleted file mode 100644 index a908dea..0000000 --- a/Tests/RunCMake/target_link_libraries/main.c +++ /dev/null @@ -1,12 +0,0 @@ - -#if defined(_WIN32) -__declspec(dllimport) -#endif - void func_c(); - -int main() -{ - func_c(); - - return 0; -} diff --git a/Tests/RunCMake/target_link_libraries/main.cxx b/Tests/RunCMake/target_link_libraries/main.cxx deleted file mode 100644 index ffaa3b4..0000000 --- a/Tests/RunCMake/target_link_libraries/main.cxx +++ /dev/null @@ -1,12 +0,0 @@ - -#if defined(_WIN32) -__declspec(dllimport) -#endif - void func_cxx(); - -int main() -{ - func_cxx(); - - return 0; -} |