2011-07-16 09:34:24 -06:00
|
|
|
find_package(Lua51 QUIET)
|
2011-07-16 10:29:46 -06:00
|
|
|
|
2011-07-16 09:34:24 -06:00
|
|
|
if(LUA51_FOUND)
|
2011-07-16 10:29:46 -06:00
|
|
|
include_directories(${LUA_INCLUDE_DIR} include)
|
|
|
|
FILE(GLOB DFUSION_CPPS src/*.c*)
|
|
|
|
set(
|
|
|
|
DFUSION_CPPS_ALL
|
|
|
|
dfusion.cpp
|
|
|
|
${DFUSION_CPPS}
|
|
|
|
)
|
|
|
|
DFHACK_PLUGIN(dfusion ${DFUSION_CPPS_ALL})
|
2011-07-16 09:34:24 -06:00
|
|
|
target_link_libraries(dfusion ${LUA_LIBRARIES})
|
|
|
|
else(LUA51_FOUND)
|
|
|
|
MESSAGE(STATUS "Required libraries (lua51) not found - dfusion plugin can't be built.")
|
|
|
|
endif(LUA51_FOUND)
|