ledbar: rename to my9221
[contrib/upm.git] / examples / CMakeLists.txt
1 add_executable (compass compass.cxx)
2 add_executable (groveled groveled.cxx)
3 add_executable (grovetemp grovetemp.cxx)
4 add_executable (lcm-lcd lcm-lcd.cxx)
5 add_executable (rgb-lcd rgb-lcd.cxx)
6 add_executable (buzzer-sound buzzer-sound.cxx)
7 add_executable (led-bar led-bar.cxx)
8 add_executable (seg-lcd 4digitdisplay.cxx)
9 add_executable (nrf_transmitter nrf_transmitter.cxx)
10 add_executable (nrf_receiver nrf_receiver.cxx)
11 add_executable (es08a es08a.cxx)
12 add_executable (son-hcsr04 hcsr04.cxx)
13 add_executable (oled-1308 oled-1308.cxx)
14 add_executable (oled-1327 oled-1327.cxx)
15 add_executable (proximity max44000.cxx)
16
17 include_directories (${PROJECT_SOURCE_DIR}/src/hmc5883l)
18 include_directories (${PROJECT_SOURCE_DIR}/src/grove)
19 include_directories (${PROJECT_SOURCE_DIR}/src/lcd)
20 include_directories (${PROJECT_SOURCE_DIR}/src/buzzer)
21 include_directories (${PROJECT_SOURCE_DIR}/src/my9221)
22 include_directories (${PROJECT_SOURCE_DIR}/src/tm1637)
23 include_directories (${PROJECT_SOURCE_DIR}/src/nrf24l01)
24 include_directories (${PROJECT_SOURCE_DIR}/src/servo)
25 include_directories (${PROJECT_SOURCE_DIR}/src/hcsr04)
26 include_directories (${PROJECT_SOURCE_DIR}/src/max44000)
27
28 target_link_libraries (compass hmc5883l ${CMAKE_THREAD_LIBS_INIT})
29 target_link_libraries (groveled grove ${CMAKE_THREAD_LIBS_INIT})
30 target_link_libraries (grovetemp grove ${CMAKE_THREAD_LIBS_INIT})
31 target_link_libraries (lcm-lcd i2clcd ${CMAKE_THREAD_LIBS_INIT})
32 target_link_libraries (rgb-lcd i2clcd ${CMAKE_THREAD_LIBS_INIT})
33 target_link_libraries (buzzer-sound buzzer ${CMAKE_THREAD_LIBS_INIT})
34 target_link_libraries (led-bar my9221 ${CMAKE_THREAD_LIBS_INIT})
35 target_link_libraries (seg-lcd tm1637 ${CMAKE_THREAD_LIBS_INIT})
36 target_link_libraries (nrf_transmitter nrf24l01 ${CMAKE_THREAD_LIBS_INIT})
37 target_link_libraries (nrf_receiver nrf24l01 ${CMAKE_THREAD_LIBS_INIT})
38 target_link_libraries (es08a servo ${CMAKE_THREAD_LIBS_INIT})
39 target_link_libraries (son-hcsr04 hcsr04 ${CMAKE_THREAD_LIBS_INIT})
40 target_link_libraries (oled-1308 i2clcd ${CMAKE_THREAD_LIBS_INIT})
41 target_link_libraries (oled-1327 i2clcd ${CMAKE_THREAD_LIBS_INIT})
42 target_link_libraries (proximity max44000 ${CMAKE_THREAD_LIBS_INIT})