2018-12-27 23:45:16 +01:00
|
|
|
|
|
|
|
set(hdrs
|
|
|
|
include/pw/scripting/script.hpp
|
|
|
|
include/pw/scripting/scripting.hpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(srcs
|
|
|
|
src/script.cpp
|
2018-12-30 23:36:53 +01:00
|
|
|
src/script_core.hpp
|
|
|
|
src/script_core.cpp
|
|
|
|
src/script_system.hpp
|
|
|
|
src/script_system.cpp
|
|
|
|
src/script_scene.hpp
|
|
|
|
src/script_scene.cpp
|
2018-12-27 23:45:16 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(pwscripting
|
|
|
|
STATIC
|
|
|
|
${hdrs}
|
|
|
|
${srcs}
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
target_include_directories(
|
|
|
|
pwscripting
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_SOURCE_DIR}/src/deps/lua-5.3.4/src
|
2018-12-30 23:36:53 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/src/deps/sol2-2.20.6
|
|
|
|
PUBLIC
|
|
|
|
include
|
2018-12-27 23:45:16 +01:00
|
|
|
)
|
|
|
|
|
2018-12-30 23:36:53 +01:00
|
|
|
target_link_libraries(pwscripting lualib pwcore pwsystem pwscene)
|