ubox could compile.

This commit is contained in:
jbnadal
2016-12-09 18:00:35 +01:00
parent eb3cbff232
commit 3084c88ee0
3 changed files with 10 additions and 13 deletions

View File

@@ -8,26 +8,23 @@ set (CMAKE_MODULE_PATH "${MODULE_PATH}")
set(DISABLE_TARGET_OPTIMIZATION ON)
include (aw)
include (br)
# Logd
add_executable (logd
$ENV{AWOXCVS}/AwoxAudio/Products/External/ubox/log/logd.c
$ENV{AWOXCVS}/AwoxAudio/Products/External/ubox/log/syslog.c)
$ENV{SRC_DIR}/src/3P/ubox/log/logd.c
$ENV{SRC_DIR}/src/3P/ubox/log/syslog.c)
target_link_libraries (logd ubox ubus)
install (TARGETS logd RUNTIME DESTINATION sbin)
# Logread
add_executable (logread
$ENV{AWOXCVS}/AwoxAudio/Products/External/ubox/log/logread.c)
$ENV{SRC_DIR}/src/3P/ubox/log/logread.c)
target_link_libraries (logread ubox ubus json-c blobmsg_json)
install (TARGETS logread RUNTIME DESTINATION sbin)
# kmodloader
add_executable (kmodloader
$ENV{AWOXCVS}/AwoxAudio/Products/External/ubox/kmodloader.c)
$ENV{SRC_DIR}/src/3P/ubox/kmodloader.c)
target_link_libraries (kmodloader ubox)
install (TARGETS kmodloader RUNTIME DESTINATION ../sbin)

View File

@@ -36,7 +36,7 @@ target_include_directories (ubus PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
install (TARGETS ubus LIBRARY DESTINATION local/lib)
file (GLOB ubus_headers $ENV{AWOXCVS}/AwoxAudio/Libs/External/ubus/*.h)
file (GLOB ubus_headers $ENV{SRC_DIR}/src/3P/ubus/*.h)
install (FILES ${ubus_headers} DESTINATION include/ubus)