summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0111/CMP0111-Common.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CMP0111/CMP0111-Common.cmake')
-rw-r--r--Tests/RunCMake/CMP0111/CMP0111-Common.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0111/CMP0111-Common.cmake b/Tests/RunCMake/CMP0111/CMP0111-Common.cmake
new file mode 100644
index 0000000..564169d
--- /dev/null
+++ b/Tests/RunCMake/CMP0111/CMP0111-Common.cmake
@@ -0,0 +1,9 @@
+# Prevent duplicate errors on some platforms.
+set(CMAKE_IMPORT_LIBRARY_SUFFIX "placeholder")
+
+add_library(unknown_lib UNKNOWN IMPORTED)
+add_library(static_lib STATIC IMPORTED)
+add_library(shared_lib SHARED IMPORTED)
+
+add_executable(executable main.cpp)
+target_link_libraries(executable unknown_lib static_lib shared_lib)