2012-03-21 11:49:50 -06:00
|
|
|
find_package(Ruby)
|
|
|
|
if(RUBY_FOUND)
|
|
|
|
include_directories("${dfhack_SOURCE_DIR}/depends/tthread" ${RUBY_INCLUDE_PATH})
|
|
|
|
DFHACK_PLUGIN(ruby ruby.cpp LINK_LIBRARIES dfhack-tinythread)
|
2012-03-21 12:30:31 -06:00
|
|
|
target_link_libraries(ruby ${RUBY_LIBRARY})
|
|
|
|
install(FILES ruby.rb DESTINATION ${DFHACK_LIBRARY_DESTINATION})
|
2012-03-21 11:49:50 -06:00
|
|
|
else(RUBY_FOUND)
|
|
|
|
MESSAGE(STATUS "Required library (ruby) not found - ruby plugin can't be built.")
|
|
|
|
endif(RUBY_FOUND)
|