summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcFramework
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/XcFramework')
-rw-r--r--Tests/RunCMake/XcFramework/create-executable-target.cmake3
-rw-r--r--Tests/RunCMake/XcFramework/create-executable.cmake3
-rw-r--r--Tests/RunCMake/XcFramework/myconsuminglib/myconsuminglib.c6
3 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcFramework/create-executable-target.cmake b/Tests/RunCMake/XcFramework/create-executable-target.cmake
index 0cc356c..1bc091f 100644
--- a/Tests/RunCMake/XcFramework/create-executable-target.cmake
+++ b/Tests/RunCMake/XcFramework/create-executable-target.cmake
@@ -19,3 +19,6 @@ set_property(TARGET mylib PROPERTY IMPORTED_LOCATION ${MYLIB_LIBRARY})
add_executable(myexe myexe/myexe.c)
target_link_libraries(myexe PRIVATE mylib)
+
+add_library(myconsuminglib STATIC myconsuminglib/myconsuminglib.c)
+target_link_libraries(myconsuminglib PRIVATE mylib)
diff --git a/Tests/RunCMake/XcFramework/create-executable.cmake b/Tests/RunCMake/XcFramework/create-executable.cmake
index 6706b9f..eaad890 100644
--- a/Tests/RunCMake/XcFramework/create-executable.cmake
+++ b/Tests/RunCMake/XcFramework/create-executable.cmake
@@ -16,3 +16,6 @@ endif()
add_executable(myexe myexe/myexe.c)
target_link_libraries(myexe PRIVATE ${MYLIB_LIBRARY})
+
+add_library(myconsuminglib STATIC myconsuminglib/myconsuminglib.c)
+target_link_libraries(myconsuminglib PRIVATE ${MYLIB_LIBRARY})
diff --git a/Tests/RunCMake/XcFramework/myconsuminglib/myconsuminglib.c b/Tests/RunCMake/XcFramework/myconsuminglib/myconsuminglib.c
new file mode 100644
index 0000000..83c0789
--- /dev/null
+++ b/Tests/RunCMake/XcFramework/myconsuminglib/myconsuminglib.c
@@ -0,0 +1,6 @@
+#include <mylib/mylib.h>
+
+void myconsuminglib(void)
+{
+ mylib();
+}