98d3be6c9640b9abca2d89ddb8a4430645f5567a
[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 add_executable (accelerometer mma7455.cxx)
17 add_executable (lcd st7735.cxx)
18
19 include_directories (${PROJECT_SOURCE_DIR}/src/hmc5883l)
20 include_directories (${PROJECT_SOURCE_DIR}/src/grove)
21 include_directories (${PROJECT_SOURCE_DIR}/src/lcd)
22 include_directories (${PROJECT_SOURCE_DIR}/src/buzzer)
23 include_directories (${PROJECT_SOURCE_DIR}/src/my9221)
24 include_directories (${PROJECT_SOURCE_DIR}/src/tm1637)
25 include_directories (${PROJECT_SOURCE_DIR}/src/nrf24l01)
26 include_directories (${PROJECT_SOURCE_DIR}/src/servo)
27 include_directories (${PROJECT_SOURCE_DIR}/src/hcsr04)
28 include_directories (${PROJECT_SOURCE_DIR}/src/max44000)
29 include_directories (${PROJECT_SOURCE_DIR}/src/mma7455)
30 include_directories (${PROJECT_SOURCE_DIR}/src/st7735)
31
32 target_link_libraries (compass hmc5883l ${CMAKE_THREAD_LIBS_INIT})
33 target_link_libraries (groveled grove ${CMAKE_THREAD_LIBS_INIT})
34 target_link_libraries (grovetemp grove ${CMAKE_THREAD_LIBS_INIT})
35 target_link_libraries (lcm-lcd i2clcd ${CMAKE_THREAD_LIBS_INIT})
36 target_link_libraries (rgb-lcd i2clcd ${CMAKE_THREAD_LIBS_INIT})
37 target_link_libraries (buzzer-sound buzzer ${CMAKE_THREAD_LIBS_INIT})
38 target_link_libraries (led-bar my9221 ${CMAKE_THREAD_LIBS_INIT})
39 target_link_libraries (seg-lcd tm1637 ${CMAKE_THREAD_LIBS_INIT})
40 target_link_libraries (nrf_transmitter nrf24l01 ${CMAKE_THREAD_LIBS_INIT})
41 target_link_libraries (nrf_receiver nrf24l01 ${CMAKE_THREAD_LIBS_INIT})
42 target_link_libraries (es08a servo ${CMAKE_THREAD_LIBS_INIT})
43 target_link_libraries (son-hcsr04 hcsr04 ${CMAKE_THREAD_LIBS_INIT})
44 target_link_libraries (oled-1308 i2clcd ${CMAKE_THREAD_LIBS_INIT})
45 target_link_libraries (oled-1327 i2clcd ${CMAKE_THREAD_LIBS_INIT})
46 target_link_libraries (proximity max44000 ${CMAKE_THREAD_LIBS_INIT})
47 target_link_libraries (accelerometer mma7455 ${CMAKE_THREAD_LIBS_INIT})
48 target_link_libraries (lcd st7735 ${CMAKE_THREAD_LIBS_INIT})