-ADD_EXECUTABLE(afb-daemon ${AFB-DAEMON_SOURCES})
-
-include_directories(${include_dirs})
-target_link_libraries(afb-daemon ${link_libraries})
-
-INSTALL(TARGETS afb-daemon
- RUNTIME DESTINATION bin)
+ADD_LIBRARY(src OBJECT main.c config.c session.c http-svc.c rest-api.c)
+INCLUDE_DIRECTORIES(${include_dirs})