summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FileAPI/imported
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2018-11-09 18:54:41 (GMT)
committerBrad King <brad.king@kitware.com>2018-12-12 14:45:49 (GMT)
commitea0a0601682af00706cf57f6d3e27d4f0895ecbb (patch)
tree539ef9baee753df0254f5c207dcc3d0dc56af949 /Tests/RunCMake/FileAPI/imported
parent3e922ceb5e8cc4c4d72ddcbd8b485803c49d84f1 (diff)
downloadCMake-ea0a0601682af00706cf57f6d3e27d4f0895ecbb.zip
CMake-ea0a0601682af00706cf57f6d3e27d4f0895ecbb.tar.gz
CMake-ea0a0601682af00706cf57f6d3e27d4f0895ecbb.tar.bz2
fileapi: Add test for codemodel v2
Diffstat (limited to 'Tests/RunCMake/FileAPI/imported')
-rw-r--r--Tests/RunCMake/FileAPI/imported/CMakeLists.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/RunCMake/FileAPI/imported/CMakeLists.txt b/Tests/RunCMake/FileAPI/imported/CMakeLists.txt
new file mode 100644
index 0000000..d36d88b
--- /dev/null
+++ b/Tests/RunCMake/FileAPI/imported/CMakeLists.txt
@@ -0,0 +1,24 @@
+project(Imported)
+
+add_library(imported_lib UNKNOWN IMPORTED)
+add_executable(imported_exe IMPORTED)
+add_executable(link_imported_exe ../empty.c)
+target_link_libraries(link_imported_exe PRIVATE imported_lib)
+
+add_library(imported_shared_lib SHARED IMPORTED)
+add_executable(link_imported_shared_exe ../empty.c)
+target_link_libraries(link_imported_shared_exe PRIVATE imported_shared_lib)
+
+add_library(imported_static_lib STATIC IMPORTED)
+add_executable(link_imported_static_exe ../empty.c)
+target_link_libraries(link_imported_static_exe PRIVATE imported_static_lib)
+
+if(NOT CMAKE_GENERATOR STREQUAL "Xcode" OR NOT CMAKE_OSX_ARCHITECTURES MATCHES "[;$]")
+ add_library(imported_object_lib OBJECT IMPORTED)
+ add_executable(link_imported_object_exe ../empty.c)
+ target_link_libraries(link_imported_object_exe PRIVATE imported_object_lib)
+endif()
+
+add_library(imported_interface_lib INTERFACE IMPORTED)
+add_executable(link_imported_interface_exe ../empty.c)
+target_link_libraries(link_imported_interface_exe PRIVATE imported_interface_lib)