projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
usock: set socket flags right after creating it
[project/libubox.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 737f2ae5b9af8f62e3aedc33c19f262891f1b3d4..ddd5533fa137e16979dedbddab56556644e4ce07 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-7,11
+7,6
@@
ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
OPTION(BUILD_LUA "build Lua plugin" ON)
OPTION(BUILD_LUA "build Lua plugin" ON)
-IF(APPLE)
- INCLUDE_DIRECTORIES(/opt/local/include)
- LINK_DIRECTORIES(/opt/local/lib)
-ENDIF()
-
INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(JSONC json-c)
IF(JSONC_FOUND)
INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(JSONC json-c)
IF(JSONC_FOUND)
@@
-44,6
+39,7
@@
INSTALL(TARGETS ubox ubox-static
)
ADD_SUBDIRECTORY(lua)
)
ADD_SUBDIRECTORY(lua)
+ADD_SUBDIRECTORY(examples)
find_library(json NAMES json-c)
IF(EXISTS ${json})
find_library(json NAMES json-c)
IF(EXISTS ${json})