set(APPS sm-get-value ble-inspect-device) # Boost find_package(Boost COMPONENTS system log thread REQUIRED) # Bluez pkg_check_modules(BLUEZ bluez REQUIRED) # pthreads find_package(Threads REQUIRED) foreach(app ${APPS}) include_directories("${PROJECT_SOURCE_DIR}/ble") add_executable(${app} ${app}.cpp) add_dependencies(${app} ble) target_link_libraries(${app} ble) target_link_libraries(${app} ${Boost_LIBRARIES}) target_link_libraries(${app} ${BLUEZ_LIBRARIES}) target_link_libraries(${app} ${CMAKE_THREAD_LIBS_INIT}) endforeach(app)