Skip to content

Commit

Permalink
LTL v0.1.0
Browse files Browse the repository at this point in the history
* RefObject
* UserData
* Class
* and more...
  • Loading branch information
4z0t authored Nov 1, 2023
1 parent 2d4db0c commit a56d7cb
Show file tree
Hide file tree
Showing 40 changed files with 3,633 additions and 843 deletions.
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[submodule "googletest"]
path = googletest
url = https://github.com/google/googletest.git
[submodule "Tests/Lua/master"]
path = Tests/Lua/master
url = https://github.com/lua/lua.git
branch = master
31 changes: 31 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
cmake_minimum_required (VERSION 3.8)
include(CMakeDependentOption)

if (POLICY CMP0141)
cmake_policy(SET CMP0141 NEW)
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()

project (LuaTemplateLibrary)

add_subdirectory (Source)
#add_subdirectory (LTL)

cmake_dependent_option(LTL_TESTING "Build tests" ON
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF
)

if(LTL_TESTING)
find_package(GTest)
if(NOT GTest_FOUND)
set(gtest_force_shared_crt ON CACHE BOOL "Use /MD and /MDd" FORCE)
add_subdirectory(googletest EXCLUDE_FROM_ALL)
add_library(GTest::gtest ALIAS gtest)
endif()

enable_testing()
add_subdirectory(Tests)
endif()



69 changes: 69 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"configurePresets": [
{
"name": "windows-base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "x64-debug",
"displayName": "x64 Debug",
"inherits": "windows-base",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "x64-release",
"displayName": "x64 Release",
"inherits": "x64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "x64-RelWithDebInfo",
"displayName": "x64 Release with DBG info",
"inherits": "x64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "x86-debug",
"displayName": "x86 Debug",
"inherits": "windows-base",
"architecture": {
"value": "x86",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "x86-release",
"displayName": "x86 Release",
"inherits": "x86-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"version": 3
}
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) [year] [fullname]
Copyright (c) 2023 4z0t

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
31 changes: 0 additions & 31 deletions LuaTemplateLibrary.sln

This file was deleted.

243 changes: 0 additions & 243 deletions LuaTemplateLibrary/LuaAux.hpp

This file was deleted.

Loading

0 comments on commit a56d7cb

Please sign in to comment.