2018-12-27 23:45:16 +01:00
|
|
|
|
|
|
|
set(hdrs
|
2019-01-31 16:54:12 +01:00
|
|
|
include/pw/scripting/script.hpp
|
|
|
|
)
|
2018-12-27 23:45:16 +01:00
|
|
|
|
|
|
|
set(srcs
|
2019-01-31 16:54:12 +01:00
|
|
|
src/script.cpp
|
2019-01-23 09:05:09 +01:00
|
|
|
src/script_core.cpp
|
|
|
|
src/script_system.cpp
|
2019-01-31 16:54:12 +01:00
|
|
|
src/script_io.cpp
|
2019-01-23 09:05:09 +01:00
|
|
|
src/script_scene.cpp
|
|
|
|
src/script_visual.cpp
|
2019-01-31 16:54:12 +01:00
|
|
|
src/runtime_lua.hpp
|
|
|
|
src/runtime_lua.cpp
|
|
|
|
)
|
2018-12-27 23:45:16 +01:00
|
|
|
|
|
|
|
add_library(pwscripting
|
2019-01-31 16:54:12 +01:00
|
|
|
STATIC
|
|
|
|
${hdrs}
|
|
|
|
${srcs}
|
|
|
|
)
|
2018-12-27 23:45:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
target_include_directories(
|
2019-01-31 16:54:12 +01:00
|
|
|
pwscripting
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_SOURCE_DIR}/src/deps/lua-5.3.5/src
|
|
|
|
${CMAKE_SOURCE_DIR}/src/deps/sol2-2.20.6
|
|
|
|
PUBLIC
|
|
|
|
include
|
|
|
|
)
|
2018-12-27 23:45:16 +01:00
|
|
|
|
2019-01-31 16:54:12 +01:00
|
|
|
target_link_libraries(pwscripting
|
|
|
|
lualib
|
|
|
|
pwcore
|
|
|
|
pwsystem
|
|
|
|
pwio
|
|
|
|
pwscene
|
|
|
|
pwvisual)
|