equal
deleted
inserted
replaced
30 |
30 |
31 #remove the ";-framework Cocoa" from the SDL_LIBRARY variable |
31 #remove the ";-framework Cocoa" from the SDL_LIBRARY variable |
32 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}") |
32 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}") |
33 |
33 |
34 #this tool is present in qt 4.5 but only if you compile from sources; from qt 4.6 is present also in the binary version |
34 #this tool is present in qt 4.5 but only if you compile from sources; from qt 4.6 is present also in the binary version |
35 find_program(macdeployqt_EXE NAMES macdeployqt macdeployqt-mac PATHS ${qt_base_dir}/bin) |
35 find_program(macdeployqt_executable NAMES macdeployqt macdeployqt-mac PATHS ${qt_base_dir}/bin) |
36 if(NOT macdeployqt_EXE) |
36 if(NOT macdeployqt_executable) |
37 message(FATAL_ERROR "The utility macdeployqt is required to create the bundle (seached: ${qt_base_dir})") |
37 message(FATAL_ERROR "The utility macdeployqt is required to create the bundle (seached: ${qt_base_dir})") |
38 else() |
38 else() |
39 message(STATUS "macdeployqt found in ${macdeployqt_EXE}") |
39 message(STATUS "macdeployqt found in ${macdeployqt_executable}") |
40 endif() |
40 endif() |
41 |
41 |
42 #dummy target, we're interested in the postscript file |
42 #dummy target, we're interested in the postscript file |
43 add_custom_target(bundle) |
43 add_custom_target(bundle) |
44 set_target_properties(bundle PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake) |
44 set_target_properties(bundle PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake) |