lua/CMakeLists.txt

20 lines
512 B
CMake
Raw Normal View History

2025-02-12 16:34:23 +08:00
cmake_minimum_required(VERSION 3.16)
2025-02-13 10:43:45 +08:00
project(mlua LANGUAGES CXX)
2025-02-12 16:34:23 +08:00
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (MSVC)
add_compile_options(/source-charset:utf-8)
endif()
message(STATUS "System: ${CMAKE_SYSTEM_NAME}")
message(STATUS "Compiler CXX ID: ${CMAKE_CXX_COMPILER_ID}")
# Set output directories
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib/)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/)
2025-02-12 16:34:23 +08:00
add_subdirectory(lua)
2025-02-12 23:16:13 +08:00
add_subdirectory(fs)
add_subdirectory(gendef)