diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-04-28 00:35:32 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-04-28 00:35:32 +0200 |
commit | 46464c93e3d34d20901e07ff4601fb9d8462981f (patch) | |
tree | 52cfa9708d86e5cf3518d12023fb76fdb7f91331 /CMakeLists.txt | |
parent | 1cf694b165dd18f2bd4e3bd33ba203b45a20c316 (diff) | |
parent | 51283f9f1df5dedcba35f40367ef5d4ab1a55e0b (diff) |
Merge branch 'master' into bind-to-device-master
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ae8ba4..564842d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -Os -Wall -Werror -Wmissing-declarations OPTION(TLS_SUPPORT "TLS support" ON) OPTION(LUA_SUPPORT "Lua support" ON) OPTION(UBUS_SUPPORT "ubus support" ON) +OPTION(UCODE_SUPPORT "ucode support" ON) IF(APPLE) INCLUDE_DIRECTORIES(/opt/local/include) @@ -69,6 +70,13 @@ IF(LUA_SUPPORT) TARGET_LINK_LIBRARIES(uhttpd_lua ${LUA_LIBS} m dl) ENDIF() +IF(UCODE_SUPPORT) + SET(PLUGINS ${PLUGINS} uhttpd_ucode) + ADD_DEFINITIONS(-DHAVE_UCODE) + ADD_LIBRARY(uhttpd_ucode MODULE ucode.c) + TARGET_LINK_LIBRARIES(uhttpd_ucode ucode ${libjson}) +ENDIF() + IF(UBUS_SUPPORT) SET(PLUGINS ${PLUGINS} uhttpd_ubus) ADD_DEFINITIONS(-DHAVE_UBUS) |