tools/CMakeLists.txt
branchflibqtfrontend
changeset 8363 0b4ac686fc44
parent 8322 50369fa5053b
child 8659 e49056d3aba1
equal deleted inserted replaced
8306:50fe80adbfcb 8363:0b4ac686fc44
    27 
    27 
    28     #use the associated tool from the libraries we've selected
    28     #use the associated tool from the libraries we've selected
    29     string(REGEX REPLACE "(.*)/include.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}")
    29     string(REGEX REPLACE "(.*)/include.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}")
    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_library_only "${SDL_LIBRARY}")
    33 
    33 
    34     if(NOT NOPNG)
    34     if(NOT NOPNG)
    35         #get the neme of the library (harmelss if it is static)
    35         #get the neme of the library (harmelss if it is static)
    36         string(REGEX REPLACE ".*/(.*)$" "\\1" PNG_LIBNAME "${PNG_LIBRARY}")
    36         string(REGEX REPLACE ".*/(.*)$" "\\1" PNG_LIBNAME "${PNG_LIBRARY}")
       
    37     endif()
       
    38 
       
    39     set(frameworks_dir ${CMAKE_INSTALL_PREFIX}/${target_library_install_dir})
       
    40     if(${BUILD_ENGINE_LIBRARY})
       
    41         set(engine_full_path "${frameworks_dir}/${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}")
       
    42     else()
       
    43         set(engine_full_path "${CMAKE_INSTALL_PREFIX}/hwengine${CMAKE_EXECUTABLE_SUFFIX}")
    37     endif()
    44     endif()
    38 
    45 
    39     #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
    40     #from qt 4.6 is present also in the binary version
    47     #from qt 4.6 is present also in the binary version
    41     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)