You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
327 B

cmake_minimum_required(VERSION 3.12)
project(discover CXX)
add_compile_options(-Ofast -Wall) # passing the compiler a `-pthread` flag doesn't work here
find_library(RF24 rf24 REQUIRED)
message(STATUS "using RF24 library: ${RF24}")
add_executable(discover discover.cpp)
target_link_libraries(discover PUBLIC ${RF24} pthread)