Add project files.

This commit is contained in:
2022-03-05 12:44:06 +02:00
parent 453a74459f
commit f4f90b2533
517 changed files with 195610 additions and 0 deletions

28
liblua/CMakeLists.txt Normal file
View File

@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.0)
project(liblua CXX)
# Find source files
file(GLOB_RECURSE SOURCES
"src/*.c"
"src/*.h"
"include/*.h"
)
# Include header files
include_directories(
"include"
"src"
)
# Set the language to C++ on Visual Studio
if (MSVC)
SET_SOURCE_FILES_PROPERTIES(${SOURCES} PROPERTIES LANGUAGE CXX)
endif (MSVC)
# Create shared library
add_library(${PROJECT_NAME} STATIC ${SOURCES})
target_include_directories(${PROJECT_NAME} PUBLIC
"include"
"src"
)