hedgewars/CMakeLists.txt
branchcmake_pascal
changeset 8754 0c08d07e791a
parent 8752 48cf2ccb83c6
child 8756 671f6ef4f7f1
equal deleted inserted replaced
8752:48cf2ccb83c6 8754:0c08d07e791a
   202         add_library(avwrapper STATIC avwrapper.c)
   202         add_library(avwrapper STATIC avwrapper.c)
   203     endif()
   203     endif()
   204 endif()
   204 endif()
   205 
   205 
   206 
   206 
   207 set(CMAKE_Pascal_FLAGS "-B -FE${PROJECT_BINARY_DIR}/bin -FU${PROJECT_BINARY_DIR}/hedgewars -vm4079,4080,4081 -Fl${PROJECT_BINARY_DIR}/bin -Px86_64   -Fi${PROJECT_BINARY_DIR}/hedgewars -k-L${PROJECT_BINARY_DIR}/bin -Cs2000000 -vewnq -dDEBUGFILE -k-llua -k${SDLMAIN_LIB}")
   207 set(CMAKE_Pascal_FLAGS "-B -FE${PROJECT_BINARY_DIR}/bin -FU${PROJECT_BINARY_DIR}/hedgewars -vm4079,4080,4081 -Fl${PROJECT_BINARY_DIR}/bin    -Fi${PROJECT_BINARY_DIR}/hedgewars -k-L${PROJECT_BINARY_DIR}/bin -Cs2000000 -vewnq -dDEBUGFILE")
   208 add_executable(hwengine hwengine.pas)
   208 add_executable(hwengine hwengine.pas)
   209 
   209 
       
   210 if(APPLE)
       
   211     set(CMAKE_Pascal_FLAGS "-Px86_64  -k-llua -k${SDLMAIN_LIB} ${CMAKE_Pascal_FLAGS}")
       
   212 else()
       
   213     set(CMAKE_Pascal_FLAGS "-Pi386 ${CMAKE_Pascal_FLAGS}")
       
   214 endif()
   210 set(fpc_flags ${pascal_flags} ${hwengine_project})
   215 set(fpc_flags ${pascal_flags} ${hwengine_project})
   211 
   216 
   212 #add_custom_target(hwengine ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}")
   217 #add_custom_target(hwengine ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}")
   213 
   218 
   214 #when system Lua is not found we need to compile it before engine
   219 #when system Lua is not found we need to compile it before engine