Merge branch 'master' of https://github.com/peterix/dfhack
commit
c1273982cf
@ -1,17 +1,10 @@
|
|||||||
find_package(Lua51 QUIET)
|
include_directories(include)
|
||||||
|
include_directories("${dfhack_SOURCE_DIR}/library/depends/tthread")
|
||||||
if(LUA51_FOUND)
|
FILE(GLOB DFUSION_CPPS src/*.c*)
|
||||||
include_directories(${LUA_INCLUDE_DIR} include)
|
set(
|
||||||
include_directories("${dfhack_SOURCE_DIR}/library/depends/tthread")
|
|
||||||
FILE(GLOB DFUSION_CPPS src/*.c*)
|
|
||||||
set(
|
|
||||||
DFUSION_CPPS_ALL
|
DFUSION_CPPS_ALL
|
||||||
dfusion.cpp
|
dfusion.cpp
|
||||||
${DFUSION_CPPS}
|
${DFUSION_CPPS}
|
||||||
)
|
)
|
||||||
DFHACK_PLUGIN(dfusion ${DFUSION_CPPS_ALL})
|
DFHACK_PLUGIN(dfusion ${DFUSION_CPPS_ALL} LINK_LIBRARIES lua)
|
||||||
target_link_libraries(dfusion ${LUA_LIBRARIES})
|
install(DIRECTORY luafiles/ DESTINATION ${DFHACK_DATA_DESTINATION}/dfusion)
|
||||||
install(DIRECTORY luafiles/ DESTINATION ${DFHACK_DATA_DESTINATION}/dfusion)
|
|
||||||
else(LUA51_FOUND)
|
|
||||||
MESSAGE(STATUS "Required libraries (lua51) not found - dfusion plugin can't be built.")
|
|
||||||
endif(LUA51_FOUND)
|
|
||||||
|
Loading…
Reference in New Issue