pvpgn-server/lua/CMakeLists.txt
HarpyWar ee04fdd23d Lua scripts pack. It is a part of PvPGN now.
First large implementation in Lua is Trivia Quiz Game (/quiz command) http://i.imgur.com/8QV3blt.png
2014-05-26 16:17:51 +04:00

17 lines
529 B
CMake

# copy all files from lua directory
file(GLOB DEPLOY_FILES_AND_DIRS "${PROJECT_SOURCE_DIR}/lua/*")
foreach(ITEM ${DEPLOY_FILES_AND_DIRS})
IF( IS_DIRECTORY "${ITEM}" )
LIST( APPEND DIRS_TO_DEPLOY "${ITEM}" )
ELSE()
IF(NOT ${ITEM} MATCHES "CMakeLists.txt")
LIST( APPEND FILES_TO_DEPLOY "${ITEM}" )
ENDIF(NOT ${ITEM} MATCHES "CMakeLists.txt")
ENDIF()
endforeach()
INSTALL( FILES ${FILES_TO_DEPLOY} DESTINATION ${LOCALSTATEDIR}/lua )
INSTALL( DIRECTORY ${DIRS_TO_DEPLOY} DESTINATION ${LOCALSTATEDIR}/lua )