cmake_minimum_required(VERSION 2.8.3) project(wlan_pioneer) add_compile_options(-std=c++11) find_package(catkin REQUIRED COMPONENTS roscpp std_msgs message_generation ) add_message_files( FILES WlanSignalMsg.msg ) generate_messages( DEPENDENCIES std_msgs ) catkin_package( ) include_directories( ${catkin_INCLUDE_DIRS} /usr/local/include/ ) link_directories( ${catkin_INCLUDE_DIRS} /usr/local/lib/ ) add_executable(wlanSignal src/wlanSignal.cpp) target_link_libraries(wlanSignal ${catkin_LIBRARIES} wifi-scan) add_dependencies(wlanSignal wlan_pioneer_generate_messages_cpp) SET(CMAKE_INSTALL_RPATH ${catkin_LIBRARIES}) SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--disable-new-dtags")