From c8cc67f635eac49b2a002477c795d88205c50a33 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 26 Mar 2011 21:42:30 +0100 Subject: [PATCH] move ucimap to a separate library --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0857d4e..14fbacb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ OPTION(BUILD_LUA "build Lua plugin" ON) CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/uci_config.h.in ${CMAKE_SOURCE_DIR}/uci_config.h ) -SET(LIB_SOURCES libuci.c file.c ucimap.c util.c delta.c) +SET(LIB_SOURCES libuci.c file.c util.c delta.c) ADD_LIBRARY(uci-shared SHARED ${LIB_SOURCES}) SET_TARGET_PROPERTIES(uci-shared PROPERTIES OUTPUT_NAME uci) @@ -29,8 +29,10 @@ ADD_EXECUTABLE(cli-static cli.c) SET_TARGET_PROPERTIES(cli-static PROPERTIES OUTPUT_NAME uci-static) TARGET_LINK_LIBRARIES(cli-static uci-static) +ADD_LIBRARY(ucimap STATIC ucimap.c) + ADD_EXECUTABLE(ucimap-example ucimap-example.c) -TARGET_LINK_LIBRARIES(ucimap-example uci-static) +TARGET_LINK_LIBRARIES(ucimap-example uci-static ucimap) ADD_SUBDIRECTORY(lua) -- 2.30.2