server/liblua/CMakeLists.txt
2022-03-05 12:44:06 +02:00

28 lines
482 B
CMake

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"
)