2016-07-02 13:35:58 +00:00
|
|
|
set(CMAKE_C_FLAGS "-std=gnu11 ${CMAKE_C_FLAGS}")
|
2015-03-08 23:06:19 +00:00
|
|
|
|
|
|
|
add_subdirectory(shared)
|
|
|
|
add_subdirectory(wifi)
|
|
|
|
add_subdirectory(dhcp)
|
|
|
|
add_subdirectory(ctl)
|
2016-07-02 13:35:58 +00:00
|
|
|
add_subdirectory(uibc)
|
2015-03-08 23:06:19 +00:00
|
|
|
|
|
|
|
set(miracled_SRCS miracled.h miracled.c)
|
|
|
|
add_executable(miracled ${miracled_SRCS})
|
|
|
|
target_link_libraries(miracled miracle-shared)
|
|
|
|
install(TARGETS miracled DESTINATION bin)
|
2015-04-12 08:34:42 +00:00
|
|
|
|
2015-04-11 11:03:14 +00:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/shared)
|
2015-03-08 23:06:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#original Makefile.am contents follow:
|
|
|
|
|
|
|
|
#include $(top_srcdir)/common.am
|
|
|
|
#SUBDIRS = shared wifi dhcp ctl
|
|
|
|
#
|
|
|
|
#bin_PROGRAMS = miracled
|
|
|
|
#
|
|
|
|
#miracled_SOURCES = \
|
|
|
|
# miracled.h \
|
|
|
|
# miracled.c
|
|
|
|
#miracled_CPPFLAGS = \
|
|
|
|
# $(AM_CPPFLAGS) \
|
|
|
|
# $(DEPS_CFLAGS)
|
|
|
|
#miracled_LDADD = \
|
|
|
|
# shared/libmiracle-shared.la \
|
|
|
|
# $(DEPS_LIBS)
|
|
|
|
#
|