ENH: Changes that allow configuring/building BundleTest test separately from the main CMake build. (Eliminate reference to CMake_SOURE_DIR.)
This commit is contained in:
parent
6c14041e75
commit
ff14ae2439
|
@ -12,7 +12,7 @@ SET_SOURCE_FILES_PROPERTIES(
|
||||||
|
|
||||||
SET_SOURCE_FILES_PROPERTIES(
|
SET_SOURCE_FILES_PROPERTIES(
|
||||||
"${BundleTest_SOURCE_DIR}/SomeRandomFile.txt"
|
"${BundleTest_SOURCE_DIR}/SomeRandomFile.txt"
|
||||||
"${CMake_SOURCE_DIR}/ChangeLog.txt"
|
"${BundleTest_SOURCE_DIR}/../../ChangeLog.txt"
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
MACOSX_PACKAGE_LOCATION MacOS
|
MACOSX_PACKAGE_LOCATION MacOS
|
||||||
)
|
)
|
||||||
|
@ -21,11 +21,11 @@ ADD_EXECUTABLE(SecondBundle
|
||||||
MACOSX_BUNDLE
|
MACOSX_BUNDLE
|
||||||
"${BundleTest_SOURCE_DIR}/BundleTest.cxx"
|
"${BundleTest_SOURCE_DIR}/BundleTest.cxx"
|
||||||
"${BundleTest_SOURCE_DIR}/SomeRandomFile.txt"
|
"${BundleTest_SOURCE_DIR}/SomeRandomFile.txt"
|
||||||
"${CMake_SOURCE_DIR}/ChangeLog.txt"
|
"${BundleTest_SOURCE_DIR}/../../ChangeLog.txt"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/randomResourceFile.plist"
|
"${CMAKE_CURRENT_BINARY_DIR}/randomResourceFile.plist"
|
||||||
)
|
)
|
||||||
TARGET_LINK_LIBRARIES(SecondBundle BundleTestLib)
|
TARGET_LINK_LIBRARIES(SecondBundle BundleTestLib)
|
||||||
|
|
||||||
# Test bundle installation.
|
# Test bundle installation.
|
||||||
INSTALL(TARGETS SecondBundle DESTINATION Applications)
|
INSTALL(TARGETS SecondBundle DESTINATION Applications)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ SET_SOURCE_FILES_PROPERTIES(
|
||||||
|
|
||||||
SET_SOURCE_FILES_PROPERTIES(
|
SET_SOURCE_FILES_PROPERTIES(
|
||||||
SomeRandomFile.txt
|
SomeRandomFile.txt
|
||||||
"${CMake_SOURCE_DIR}/ChangeLog.txt"
|
"${BundleTest_SOURCE_DIR}/../../ChangeLog.txt"
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
MACOSX_PACKAGE_LOCATION MacOS
|
MACOSX_PACKAGE_LOCATION MacOS
|
||||||
)
|
)
|
||||||
|
@ -30,7 +30,7 @@ ADD_EXECUTABLE(BundleTest
|
||||||
MACOSX_BUNDLE
|
MACOSX_BUNDLE
|
||||||
BundleTest.cxx
|
BundleTest.cxx
|
||||||
SomeRandomFile.txt
|
SomeRandomFile.txt
|
||||||
"${CMake_SOURCE_DIR}/ChangeLog.txt"
|
"${BundleTest_SOURCE_DIR}/../../ChangeLog.txt"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/randomResourceFile.plist"
|
"${CMAKE_CURRENT_BINARY_DIR}/randomResourceFile.plist"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue