Skip to content

Commit

Permalink
Add sol2 - a c++ lua wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
nemerle committed Oct 11, 2017
1 parent af93bc9 commit 0daeffa
Show file tree
Hide file tree
Showing 10 changed files with 19,400 additions and 245 deletions.
1 change: 1 addition & 0 deletions 3rd_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ endif()

if(ENABLE_SCRIPTING_ENGINE)
include(ExternalProject_LUA.cmake)
include(ExternalProject_SOL2.cmake)
endif()

if(ENABLE_TESTS)
Expand Down
15 changes: 15 additions & 0 deletions 3rd_party/ExternalProject_SOL2.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ExternalProject_Add(
sol2_BUILD
URL ""
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lua_sol2
UPDATE_COMMAND ""
INSTALL_DIR ${ThirdParty_Install_Dir}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
CMAKE_GENERATOR "${CMAKE_GENERATOR}"
CMAKE_GENERATOR_TOOLSET ${CMAKE_GENERATOR_TOOLSET}
)
add_library(sol2_IMP INTERFACE IMPORTED GLOBAL)
add_dependencies(sol2_IMP sol2_BUILD)
#TODO: cmake workaround
file(MAKE_DIRECTORY ${ThirdParty_Install_Dir}/include)
set_property(TARGET sol2_IMP PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${ThirdParty_Install_Dir}/include)
197 changes: 0 additions & 197 deletions 3rd_party/lua/Makefile

This file was deleted.

Loading

0 comments on commit 0daeffa

Please sign in to comment.