summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-12 11:23:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-04-12 11:23:31 (GMT)
commit680641a882254d3b8c6eb52415e7be841a46a6eb (patch)
tree84f91a4e3e5cae14a4c76f10010a491dfc01c9c6 /Tests
parent1601b47b3e55e5de755412ced342a5bb75c4507a (diff)
parent428c1e429ffb320b64c19d3da32e0822ff1b1b8d (diff)
downloadCMake-680641a882254d3b8c6eb52415e7be841a46a6eb.zip
CMake-680641a882254d3b8c6eb52415e7be841a46a6eb.tar.gz
CMake-680641a882254d3b8c6eb52415e7be841a46a6eb.tar.bz2
Merge topic 'xcode-extra-sources'
428c1e429f Xcode: Avoid mutating App Bundle targets during generation b4385d5ccc Xcode: Factor out duplicate source group code into lambda Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3208
Diffstat (limited to 'Tests')
-rw-r--r--Tests/BundleTest/BundleSubDir/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/BundleTest/BundleSubDir/CMakeLists.txt b/Tests/BundleTest/BundleSubDir/CMakeLists.txt
index 43c366a..2f7f2c4 100644
--- a/Tests/BundleTest/BundleSubDir/CMakeLists.txt
+++ b/Tests/BundleTest/BundleSubDir/CMakeLists.txt
@@ -1,3 +1,5 @@
+project(BundleSubDir)
+
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/randomResourceFile.plist"
COMMAND /bin/cp
@@ -34,3 +36,8 @@ install(TARGETS SecondBundle DESTINATION Applications)
# bundle does not respect the name. Also the executable will not be found by
# the test driver if this does not work.
set_target_properties(SecondBundle PROPERTIES OUTPUT_NAME SecondBundleExe)
+
+# Express one app bundle in terms of another's SOURCES to verify that
+# the generators do not expose the Info.plist of one to the other.
+add_executable(SubdirBundle1 MACOSX_BUNDLE EXCLUDE_FROM_ALL ../BundleTest.cxx)
+add_executable(SubdirBundle2 MACOSX_BUNDLE EXCLUDE_FROM_ALL $<TARGET_PROPERTY:SubdirBundle1,SOURCES>)