QTfrontend/CMakeLists.txt
changeset 8104 09c38cdf380d
parent 8083 2edbd01a04a0
child 8126 5bfa1b2025d6
child 8144 f3ba33d5d2b1
equal deleted inserted replaced
8101:6d1570061d19 8104:09c38cdf380d
   161     add_definitions(-DHWLIBRARY)
   161     add_definitions(-DHWLIBRARY)
   162     set(HW_LINK_LIBS hwengine ${HW_LINK_LIBS})
   162     set(HW_LINK_LIBS hwengine ${HW_LINK_LIBS})
   163     link_directories(${EXECUTABLE_OUTPUT_PATH})
   163     link_directories(${EXECUTABLE_OUTPUT_PATH})
   164 endif()
   164 endif()
   165 
   165 
   166 
   166 #when debugging, always prompt a console to see fronted messages
   167 add_executable(hedgewars WIN32
   167 #TODO: check it doesn't interfere on UNIX
       
   168 if(CMAKE_BUILD_TYPE MATCHES "RELEASE")
       
   169     set(console_access "WIN32")
       
   170 endif(CMAKE_BUILD_TYPE MATCHES "RELEASE")
       
   171 
       
   172 add_executable(hedgewars ${console_access}
   168     ${hwfr_src}
   173     ${hwfr_src}
   169     ${hwfr_moc_srcs}
   174     ${hwfr_moc_srcs}
   170     ${hwfr_hdrs}
   175     ${hwfr_hdrs}
   171     ${hwfr_rez_src}
   176     ${hwfr_rez_src}
   172     )
   177     )