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