tools/CMakeLists.txt
branch0.9.14.1
changeset 4335 c279aeb615df
parent 2641 b08cafb86797
child 4341 46b8791e577f
equal deleted inserted replaced
4334:82cfbbab73da 4335:c279aeb615df
    15 	find_package(SDL_net REQUIRED)
    15 	find_package(SDL_net REQUIRED)
    16 	find_package(SDL_ttf REQUIRED)
    16 	find_package(SDL_ttf REQUIRED)
    17 	find_package(SDL_mixer REQUIRED)
    17 	find_package(SDL_mixer REQUIRED)
    18 	find_package(OGGVORBIS REQUIRED)
    18 	find_package(OGGVORBIS REQUIRED)
    19 	find_package(SPARKLE)
    19 	find_package(SPARKLE)
    20 	find_program(macdeployqt_EXE NAMES macdeployqt macdeployqt-mac)
    20 
       
    21 	#use the associated tool from the libraries we've selected
       
    22 	string(REGEX REPLACE "(.*)/include;-.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}")
       
    23 	find_program(macdeployqt_EXE NAMES macdeployqt macdeployqt-mac PATH ${qt_base_dir})
    21 
    24 
    22 	if(NOT macdeployqt_EXE)
    25 	if(NOT macdeployqt_EXE)
    23 		message(FATAL_ERROR "The utility macdeployqt is required to create the bundle!")
    26 		message(FATAL_ERROR "The utility macdeployqt is required to create the bundle!")
    24 	endif()
    27 	endif()
    25 
    28