allow optional build with ebusfeed (fixes #477)
This commit is contained in:
@@ -10,4 +10,10 @@ add_executable(ebuspicloader ${ebuspicloader_SOURCES})
|
||||
target_link_libraries(ebusctl utils ebus ${LIB_ARGP} ${ebusctl_LIBS})
|
||||
target_link_libraries(ebuspicloader ${LIB_ARGP})
|
||||
|
||||
if(WITH_EBUSFEED)
|
||||
set(ebusfeed_SOURCES ebusfeed.cpp)
|
||||
add_executable(ebusfeed ${ebusfeed_SOURCES})
|
||||
target_link_libraries(ebusfeed ebus ${LIB_ARGP} ${ebusfeed_LIBS})
|
||||
endif(WITH_EBUSFEED)
|
||||
|
||||
install(TARGETS ebusctl ebuspicloader EXPORT ebusd DESTINATION usr/bin)
|
||||
|
||||
@@ -9,6 +9,13 @@ ebusctl_LDADD = ../lib/utils/libutils.a
|
||||
|
||||
ebuspicloader_SOURCES = ebuspicloader.cpp intelhex/intelhexclass.cpp
|
||||
|
||||
if WITH_EBUSFEED
|
||||
bin_PROGRAMS += ebusfeed
|
||||
ebusfeed_SOURCES = ebusfeed.cpp
|
||||
ebusfeed_LDADD = ../lib/utils/libutils.a \
|
||||
../lib/ebus/libebus.a
|
||||
endif
|
||||
|
||||
distclean-local:
|
||||
-rm -f Makefile.in
|
||||
-rm -rf .libs
|
||||
|
||||
Reference in New Issue
Block a user