0b80f1b5ce
By basing the Lua gluon.site module on gluonutil_load_site_config(), the config load implementation needs to changed only in a single place for multi-domain support.
13 lines
315 B
CMake
13 lines
315 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(gluon-core C)
|
|
|
|
add_library(site MODULE site.c)
|
|
set_property(TARGET site PROPERTY PREFIX "")
|
|
set_property(TARGET site PROPERTY COMPILE_FLAGS "-Wall -std=c99")
|
|
target_link_libraries(site gluonutil lua lua-jsonc)
|
|
|
|
install(TARGETS site
|
|
LIBRARY DESTINATION lib/lua/gluon
|
|
)
|