tools/CMakeLists.txt
changeset 8322 50369fa5053b
parent 8317 ec9f94ab2737
child 8659 e49056d3aba1
equal deleted inserted replaced
8320:3913a7f7245d 8322:50369fa5053b
    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()
    37     endif()
    38 
    38 
    39     set(frameworks_dir ${CMAKE_INSTALL_PREFIX}/${target_library_install_dir})
    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}")
       
    44     endif()
    40 
    45 
    41     #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
    42     #from qt 4.6 is present also in the binary version
    47     #from qt 4.6 is present also in the binary version
    43     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)
    44     if(NOT macdeployqt_executable)
    49     if(NOT macdeployqt_executable)