QTfrontend/CMakeLists.txt
changeset 8310 a98c349bc06b
parent 8283 af97cdbb7713
child 8311 bc18481dca8b
equal deleted inserted replaced
8309:edcfb5e43245 8310:a98c349bc06b
   134     campaign.h
   134     campaign.h
   135     )
   135     )
   136 
   136 
   137 set(hwfr_rez hedgewars.qrc)
   137 set(hwfr_rez hedgewars.qrc)
   138 
   138 
       
   139 if(BUILD_ENGINE_LIBRARY)
       
   140     add_definitions(-DHWLIBRARY)
       
   141     set(HW_LINK_LIBS hwengine ${HW_LINK_LIBS})
       
   142     link_directories(${EXECUTABLE_OUTPUT_PATH})
       
   143 endif()
       
   144 
   139 qt4_add_resources(hwfr_rez_src ${hwfr_rez})
   145 qt4_add_resources(hwfr_rez_src ${hwfr_rez})
   140 
   146 
   141 qt4_wrap_cpp(hwfr_moc_srcs ${hwfr_moc_hdrs})
   147 qt4_wrap_cpp(hwfr_moc_srcs ${hwfr_moc_hdrs})
   142 
   148 
   143 
   149 
   158             set(HW_LINK_LIBS ${SPARKLE_LIBRARY} ${HW_LINK_LIBS})
   164             set(HW_LINK_LIBS ${SPARKLE_LIBRARY} ${HW_LINK_LIBS})
   159         endif()
   165         endif()
   160     endif()
   166     endif()
   161 endif()
   167 endif()
   162 
   168 
   163 if(BUILD_ENGINE_LIBRARY)
       
   164     add_definitions(-DHWLIBRARY)
       
   165     set(HW_LINK_LIBS hwengine ${HW_LINK_LIBS})
       
   166     link_directories(${EXECUTABLE_OUTPUT_PATH})
       
   167 endif()
       
   168 
       
   169 #when debugging, always prompt a console to see fronted messages
   169 #when debugging, always prompt a console to see fronted messages
   170 #TODO: check it doesn't interfere on UNIX
   170 #TODO: check it doesn't interfere on UNIX
   171 if(CMAKE_BUILD_TYPE MATCHES "RELEASE")
   171 if(CMAKE_BUILD_TYPE MATCHES "RELEASE")
   172     set(console_access "WIN32")
   172     set(console_access "WIN32")
   173 endif(CMAKE_BUILD_TYPE MATCHES "RELEASE")
   173 endif(CMAKE_BUILD_TYPE MATCHES "RELEASE")