CMakeLists.txt
branchphysfslayer
changeset 8034 fc032c0f7b23
parent 8022 10b3b93c1f56
child 8037 547f94509079
equal deleted inserted replaced
8031:fc40b343c45c 8034:fc032c0f7b23
   237 if(LUA_FOUND)
   237 if(LUA_FOUND)
   238     message(STATUS "Found LUA: ${LUA_DEFAULT}")
   238     message(STATUS "Found LUA: ${LUA_DEFAULT}")
   239 else()
   239 else()
   240     message(STATUS "LUA will be provided by the bundled sources")
   240     message(STATUS "LUA will be provided by the bundled sources")
   241     add_subdirectory(misc/liblua)
   241     add_subdirectory(misc/liblua)
       
   242     set(LUA_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/misc/liblua)
   242     #linking with liblua.a requires system readline -- this works everywhere, right?
   243     #linking with liblua.a requires system readline -- this works everywhere, right?
   243     set(pascal_flags "-k${EXECUTABLE_OUTPUT_PATH}/lib${LUA_LIBRARY}.a" "-k-lreadline" ${pascal_flags})
   244     set(pascal_flags "-k${EXECUTABLE_OUTPUT_PATH}/lib${LUA_LIBRARY}.a" "-k-lreadline" ${pascal_flags})
       
   245     add_dependencies(physfsrwops lua)
   244 endif()
   246 endif()
   245 
   247 
   246 
   248 
   247 #main engine
   249 #main engine
   248 add_subdirectory(hedgewars)
   250 add_subdirectory(hedgewars)