Skip to content
This repository has been archived by the owner on Sep 14, 2019. It is now read-only.

Commit

Permalink
Merge pull request #93 from Milerius/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Milerius authored Aug 3, 2018
2 parents b3f1050 + d426309 commit fff80dd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ if (NOT DISABLE_INSTALL_SHIVA_CORE)
FILES_MATCHING PATTERN "*.h*" PATTERN "*.lua"
)

install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/tools
DESTINATION
${CMAKE_INSTALL_DATADIR}/shiva)

install(EXPORT shiva-targets
FILE shiva-targets.cmake
NAMESPACE shiva::
Expand Down
9 changes: 9 additions & 0 deletions cmake/shiva-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ include("${CMAKE_CURRENT_LIST_DIR}/shiva-pyscripting-targets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/shiva-world-targets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/shiva-targets.cmake")

##! Lua plugins
get_property(result TARGET shiva::range PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
list (GET result 0 HEAD)
get_filename_component(PARENT_DIR ${HEAD} DIRECTORY)
message(STATUS "location -> ${PARENT_DIR}")
configure_file(${PARENT_DIR}/scenes/shiva/scenes/scenes_system.lua
${CMAKE_SOURCE_DIR}/bin/assets/scripts/systems/lua/scenes_system.lua
COPYONLY)

##! O Dependancies
check_required_components("range")
check_required_components("timer")
Expand Down

0 comments on commit fff80dd

Please sign in to comment.