CMakeLists.txt 371 B

123456789101112
  1. cmake_minimum_required(VERSION 3.8)
  2. add_library(board board.cpp)
  3. target_include_directories(board PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
  4. target_link_libraries(board rotor_light)
  5. add_executable(ping-pong-poll ping-pong-poll.cpp)
  6. target_link_libraries(ping-pong-poll board)
  7. add_executable(ping-pong-await ping-pong-await.cpp)
  8. target_link_libraries(ping-pong-await board)