project_files/hwc/CMakeLists.txt
changeset 10127 7f29a65aa1e4
parent 9984 84835d0ceb64
child 10129 cd2a64a1f4aa
equal deleted inserted replaced
10126:2fa3bb7785ee 10127:7f29a65aa1e4
    10 #compile our rtl implementation
    10 #compile our rtl implementation
    11 include_directories(${GLEW_INCLUDE_DIR})
    11 include_directories(${GLEW_INCLUDE_DIR})
    12 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/rtl)
    12 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/rtl)
    13 include_directories(${PHYSFS_INCLUDE_DIR})
    13 include_directories(${PHYSFS_INCLUDE_DIR})
    14 include_directories(${PHYSLAYER_INCLUDE_DIR})
    14 include_directories(${PHYSLAYER_INCLUDE_DIR})
       
    15 include_directories(${LUA_INCLUDE_DIR})
    15 add_subdirectory(rtl)
    16 add_subdirectory(rtl)
    16 
    17 
    17 configure_file(${CMAKE_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
    18 configure_file(${CMAKE_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
    18 
    19 
    19 #get the list of pas files that are going to be converted and compiled
    20 #get the list of pas files that are going to be converted and compiled
    58 #wrap conversion for all source in this command
    59 #wrap conversion for all source in this command
    59 add_custom_target(engine_c DEPENDS ${engine_sources})
    60 add_custom_target(engine_c DEPENDS ${engine_sources})
    60 
    61 
    61 
    62 
    62 #compile the c files
    63 #compile the c files
       
    64 add_definitions(-DPAS2C)
       
    65 
    63 add_executable(hwengine WIN32 ${engine_sources})
    66 add_executable(hwengine WIN32 ${engine_sources})
    64 
    67 
    65 target_link_libraries(hwengine  fpcrtl
    68 target_link_libraries(hwengine  fpcrtl
    66                                 ${LUA_LIBRARY}
    69                                 ${LUA_LIBRARY}
    67                                 ${OPENGL_LIBRARY}
    70                                 ${OPENGL_LIBRARY}