Refactored directory structure, added game files from TMP
This commit is contained in:
28
src/liblua/CMakeLists.txt
Normal file
28
src/liblua/CMakeLists.txt
Normal 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"
|
||||
)
|
Reference in New Issue
Block a user