CMakeLists.txt 317 B

12345678910111213
  1. cmake_minimum_required(VERSION 3.0.2)
  2. project(oled_screen)
  3. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
  4. find_package(Threads REQUIRED)
  5. include_directories(
  6. include
  7. )
  8. add_executable(oled_screen src/main.cpp src/device.cpp src/driver.cpp)
  9. target_link_libraries(oled_screen -lbcm2835 -lm Threads::Threads)