summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FileAPI/framework
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-05-18 09:44:11 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-05-19 10:10:20 (GMT)
commitb3a6a11e95f805ab7411d395bd426561cfb4d4d0 (patch)
tree32efd0b0e8178c10af7bef4a54ea1d684e149ea3 /Tests/RunCMake/FileAPI/framework
parent5591f8dbec2102fdb15a8e9c9e022b612519baa6 (diff)
downloadCMake-b3a6a11e95f805ab7411d395bd426561cfb4d4d0.zip
CMake-b3a6a11e95f805ab7411d395bd426561cfb4d4d0.tar.gz
CMake-b3a6a11e95f805ab7411d395bd426561cfb4d4d0.tar.bz2
fileapi: Extend codemodel targets/compileGroups with Apple frameworks
Fixes: #19897
Diffstat (limited to 'Tests/RunCMake/FileAPI/framework')
-rw-r--r--Tests/RunCMake/FileAPI/framework/CMakeLists.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/FileAPI/framework/CMakeLists.txt b/Tests/RunCMake/FileAPI/framework/CMakeLists.txt
new file mode 100644
index 0000000..d69efbb
--- /dev/null
+++ b/Tests/RunCMake/FileAPI/framework/CMakeLists.txt
@@ -0,0 +1,17 @@
+project(Framework)
+enable_language(CXX)
+
+add_library(static_framework STATIC ../empty.cxx)
+set_property(TARGET static_framework PROPERTY FRAMEWORK ON)
+
+add_library(shared_framework SHARED ../empty.cxx)
+set_property(TARGET shared_framework PROPERTY FRAMEWORK ON)
+set_property(TARGET shared_framework PROPERTY SYSTEM ON)
+
+add_library(import_framework SHARED IMPORTED)
+set_property(TARGET import_framework PROPERTY FRAMEWORK ON)
+set_property(TARGET import_framework PROPERTY IMPORTED_LOCATION /usr/Frameworks/Foo.framework/Foo)
+set_property(TARGET import_framework PROPERTY IMPORTED_IMPLIB /usr/Frameworks/Foo.framework/Foo.lib)
+
+add_executable(exe_framework ../empty.cxx)
+target_link_libraries(exe_framework PRIVATE static_framework shared_framework import_framework)