tools/CMakeLists.txt
changeset 9229 5d5c5cbe7681
parent 9050 e9d54cd577e7
child 9345 bb9bf1efd0d2
equal deleted inserted replaced
9228:a001ecdf8314 9229:5d5c5cbe7681
    46     #this tool is present in qt 4.5 but only if you compile from sources
    46     #this tool is present in qt 4.5 but only if you compile from sources
    47     #from qt 4.6 is present also in the binary version
    47     #from qt 4.6 is present also in the binary version
    48     find_program(macdeployqt_executable NAMES macdeployqt macdeployqt-mac PATHS ${qt_base_dir}/bin)
    48     find_program(macdeployqt_executable NAMES macdeployqt macdeployqt-mac PATHS ${qt_base_dir}/bin)
    49     if(NOT macdeployqt_executable)
    49     if(NOT macdeployqt_executable)
    50         message(FATAL_ERROR "The utility macdeployqt is required to create the bundle (seached: ${qt_base_dir})")
    50         message(FATAL_ERROR "The utility macdeployqt is required to create the bundle (seached: ${qt_base_dir})")
    51     else()
       
    52         message(STATUS "Found macdeployqt: ${macdeployqt_executable}")
       
    53     endif()
    51     endif()
    54 
    52 
    55     #dummy target, we're interested in the postscript file
    53     #dummy target, we're interested in the postscript file
    56     add_custom_target(bundle)
    54     add_custom_target(bundle)
    57     set_target_properties(bundle PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake)
    55     set_target_properties(bundle PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake)