-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Nerixyz <nerixdev@outlook.de> Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
- Loading branch information
1 parent
9345050
commit 352a4ec
Showing
42 changed files
with
2,062 additions
and
2,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_path(Sol2_INCLUDE_DIR sol/sol.hpp HINTS ${CMAKE_SOURCE_DIR}/lib/sol2/include) | ||
|
||
find_package_handle_standard_args(Sol2 DEFAULT_MSG Sol2_INCLUDE_DIR) | ||
|
||
if (Sol2_FOUND) | ||
add_library(Sol2 INTERFACE IMPORTED) | ||
set_target_properties(Sol2 PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${Sol2_INCLUDE_DIR}" | ||
) | ||
target_compile_definitions(Sol2 INTERFACE | ||
SOL_ALL_SAFETIES_ON=1 | ||
SOL_USING_CXX_LUA=1 | ||
SOL_NO_NIL=0 | ||
) | ||
target_link_libraries(Sol2 INTERFACE lua) | ||
add_library(sol2::sol2 ALIAS Sol2) | ||
endif () | ||
|
||
mark_as_advanced(Sol2_INCLUDE_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.