Update date of copyright notices
[src/app-framework-binder.git] / src / CMakeLists.txt
index bfe187f..07fcb8b 100644 (file)
@@ -1,5 +1,5 @@
 ###########################################################################
-# Copyright 2015, 2016, 2017 IoT.bzh
+# Copyright (C) 2015-2018 "IoT.bzh"
 #
 # author: José Bollo <jose.bollo@iot.bzh>
 #
@@ -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