mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
XCTest: Use bundle specific generator expressions
This commit is contained in:
1 parent
e40e8f5c42
commit
610d2fcec0
1 file changed
+2
-2
@@ -136,7 +136,7 @@ function(xctest_add_bundle target testee)
|
|||||||
XCODE_ATTRIBUTE_TEST_HOST "$<TARGET_FILE:${testee}>")
|
XCODE_ATTRIBUTE_TEST_HOST "$<TARGET_FILE:${testee}>")
|
||||||
if(NOT XCODE_VERSION VERSION_LESS 7.3)
|
if(NOT XCODE_VERSION VERSION_LESS 7.3)
|
||||||
set_target_properties(${target} PROPERTIES
|
set_target_properties(${target} PROPERTIES
|
||||||
LIBRARY_OUTPUT_DIRECTORY "$<TARGET_FILE_DIR:${testee}>/../PlugIns")
|
LIBRARY_OUTPUT_DIRECTORY "$<TARGET_BUNDLE_CONTENT_DIR:${testee}>/PlugIns")
|
||||||
endif()
|
endif()
|
||||||
else(XCODE)
|
else(XCODE)
|
||||||
target_link_libraries(${target}
|
target_link_libraries(${target}
|
||||||
@@ -183,7 +183,7 @@ function(xctest_add_test name bundle)
|
|||||||
|
|
||||||
add_test(
|
add_test(
|
||||||
NAME ${name}
|
NAME ${name}
|
||||||
COMMAND ${XCTest_EXECUTABLE} $<TARGET_LINKER_FILE_DIR:${bundle}>/../..)
|
COMMAND ${XCTest_EXECUTABLE} $<TARGET_BUNDLE_DIR:${bundle}>)
|
||||||
|
|
||||||
# point loader to testee in case rpath is disabled
|
# point loader to testee in case rpath is disabled
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user