hedgewars/CMakeLists.txt
branchtransitional_engine
changeset 16052 0fd23fc57947
parent 16050 6a3dc15b78b9
child 16065 7b8d96fc8799
equal deleted inserted replaced
16051:2003b466b279 16052:0fd23fc57947
   187     add_flag_append(CMAKE_Pascal_FLAGS "-Fl${PHYSFS_LIBRARY}")
   187     add_flag_append(CMAKE_Pascal_FLAGS "-Fl${PHYSFS_LIBRARY}")
   188 endif()
   188 endif()
   189 
   189 
   190 list(APPEND HW_LINK_LIBS physlayer)
   190 list(APPEND HW_LINK_LIBS physlayer)
   191 
   191 
   192 
       
   193 #opengl 2
   192 #opengl 2
   194 IF(GL2)
   193 IF(GL2)
   195     add_definitions(-dGL2)
   194     add_definitions(-dGL2)
   196 ENDIF(GL2)
   195 ENDIF(GL2)
   197 
   196 
   244     set_source_files_properties(hwengine.pas PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}")
   243     set_source_files_properties(hwengine.pas PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}")
   245     add_executable(hwengine hwengine.pas)
   244     add_executable(hwengine hwengine.pas)
   246 endif()
   245 endif()
   247 
   246 
   248 #even though not actually used, this will trigger relink if any lib changes
   247 #even though not actually used, this will trigger relink if any lib changes
   249 target_link_libraries(hwengine ${HW_LINK_LIBS})
   248 target_link_libraries(hwengine ${HW_LINK_LIBS} hwengine_future)
   250 
   249 
   251 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}" DESTINATION ${destination_dir})
   250 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}" DESTINATION ${destination_dir})