QTfrontend/CMakeLists.txt
changeset 8314 7faceaca67d4
parent 8312 9e8781faabab
child 8315 b3875e10a8ae
equal deleted inserted replaced
8313:31d6613989a6 8314:7faceaca67d4
   135     )
   135     )
   136 
   136 
   137 set(hwfr_rez hedgewars.qrc)
   137 set(hwfr_rez hedgewars.qrc)
   138 
   138 
   139 if(BUILD_ENGINE_LIBRARY)
   139 if(BUILD_ENGINE_LIBRARY)
   140     add_definitions(-DHWLIBRARY)
   140     add_definitions(-DHWLIBRARY=1)
   141     if (APPLE)
   141     set(hwlibname "${EXECUTABLE_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}")
   142         set (hwlibname hwengine)
       
   143     else (APPLE)
       
   144         set (hwlibname "${EXECUTABLE_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}hwLibrary${CMAKE_SHARED_LIBRARY_SUFFIX}")
       
   145     endif (APPLE)
       
   146     set(HW_LINK_LIBS ${hwlibname} ${HW_LINK_LIBS})
   142     set(HW_LINK_LIBS ${hwlibname} ${HW_LINK_LIBS})
   147     link_directories(${EXECUTABLE_OUTPUT_PATH})
       
   148 endif()
   143 endif()
   149 
   144 
   150 qt4_add_resources(hwfr_rez_src ${hwfr_rez})
   145 qt4_add_resources(hwfr_rez_src ${hwfr_rez})
   151 
   146 
   152 qt4_wrap_cpp(hwfr_moc_srcs ${hwfr_moc_hdrs})
   147 qt4_wrap_cpp(hwfr_moc_srcs ${hwfr_moc_hdrs})