blob: 9152d5b2e95603ac5f7dddfaf82dccf0a53d37c8 (
plain)
1
2
3
4
5
6
7
8
|
set(fakeApp "${CMAKE_CURRENT_BINARY_DIR}/Fake app.app/Contents/MacOS/Fake app")
file(WRITE "${fakeApp}" "#!/bin/sh\n")
execute_process(COMMAND chmod a+rx "${fakeApp}")
find_program(FakeApp_EXECUTABLE NAMES "Fake app" NO_DEFAULT_PATH
PATHS "${CMAKE_CURRENT_BINARY_DIR}"
)
message(STATUS "FakeApp_EXECUTABLE='${FakeApp_EXECUTABLE}'")
|