23 lines
710 B
CMake
23 lines
710 B
CMake
cmake_minimum_required(VERSION 3.25)
|
|
project(lesi)
|
|
|
|
option(USE_STATIC_LUA "Link to static lua library" OFF)
|
|
option(USE_LUA_52 "Use Lua 5.1" OFF)
|
|
option(USE_LUA_51 "Use Lua 5.2" OFF)
|
|
option(USE_LUA_54 "Use Lua 5.3" OFF)
|
|
option(USE_LUA_53 "Use Lua 5.3" OFF)
|
|
|
|
include("${CMAKE_SOURCE_DIR}/config/lua_config.cmake")
|
|
|
|
message(STATUS "Binary: ${LUA_BINARY}")
|
|
message(STATUS "Library: ${LUA_LIBRARY}")
|
|
message(STATUS "Including: ${LUA_INCLUDE}")
|
|
|
|
### Lists at top level scope accessibility for modules/ and src/
|
|
set(EMBEDDED_CMODULE_LIST)
|
|
|
|
add_subdirectory(scripts)
|
|
add_subdirectory(modules)
|
|
add_subdirectory(src)
|
|
|
|
install(TARGETS lesi RUNTIME DESTINATION ${CMAKE_BINARY_DIR} LIBRARY DESTINATION ${CMAKE_BINARY_DIR})
|