-SET(binding_install_dir ${CMAKE_INSTALL_FULL_LIBDIR}/afb)
-
-###########################################################################
-# activates the monitoring by default
-if(INCLUDE_MONITORING)
- add_definitions(-DWITH_MONITORING_OPTION)
- INSTALL(DIRECTORY
- ${CMAKE_CURRENT_SOURCE_DIR}/test/monitoring
- DESTINATION
- ${binding_install_dir}
+ADD_SUBDIRECTORY(src/devtools)
+
+IF(ONLY_DEVTOOLS)
+ MESSAGE(WARNING "Only DEVTOOLS are compiled, not the binder!")
+ELSE()
+
+ ###########################################################################
+ # activates the monitoring by default
+ if(INCLUDE_MONITORING AND NOT ONLY_DEVTOOLS)
+ add_definitions(-DWITH_MONITORING_OPTION)
+ INSTALL(DIRECTORY
+ ${CMAKE_CURRENT_SOURCE_DIR}/test/monitoring
+ DESTINATION
+ ${INTRINSIC_BINDING_DIR}
+ )
+ endif()
+
+ ###########################################################################
+
+ ADD_SUBDIRECTORY(src)
+ ADD_SUBDIRECTORY(src/tests)
+ ADD_SUBDIRECTORY(include)
+ ADD_SUBDIRECTORY(bindings)
+
+ ############################################################
+ # installs the pkgconfig files
+ CONFIGURE_FILE(afb-daemon.pc.in afb-daemon.pc @ONLY)
+ CONFIGURE_FILE(libafbwsc.pc.in libafbwsc.pc @ONLY)
+
+ INSTALL(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/afb-daemon.pc
+ ${CMAKE_CURRENT_BINARY_DIR}/libafbwsc.pc
+ DESTINATION
+ ${CMAKE_INSTALL_LIBDIR}/pkgconfig