X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=d7cde90360fa5d2a8f52d7d7aca16d28116e165e;hb=3e3a29fa49ec494800a4aa866d84fba4eaa8261b;hp=bfe187f5742d7ca564822a337d2721759de4ec19;hpb=d1e30006b071533ae2d1903251962d2dec452418;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bfe187f5..d7cde903 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -89,13 +89,15 @@ INSTALL(TARGETS afb-daemon ########################################### # build and install afb-daemon ########################################### -ADD_EXECUTABLE(afs-supervisor afs-main.c afs-supervisor.c afs-discover.c afs-config.c) -TARGET_LINK_LIBRARIES(afs-supervisor - afb-lib - ${link_libraries} -) -INSTALL(TARGETS afs-supervisor - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +IF(INCLUDE_SUPERVISOR) + ADD_EXECUTABLE(afs-supervisor afs-main.c afs-supervisor.c afs-discover.c afs-config.c) + TARGET_LINK_LIBRARIES(afs-supervisor + afb-lib + ${link_libraries} + ) + INSTALL(TARGETS afs-supervisor + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +ENDIF() ########################################### # build and install libafbwsc