25 lines
450 B
CMake
25 lines
450 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
set(TEST_NAME oled)
|
|
|
|
set(INCLUDE_DIRS
|
|
../../oled
|
|
../../oled/ssd1306
|
|
../../oled/sh1106
|
|
helpers/inc
|
|
)
|
|
|
|
set(SRCS
|
|
../../oled/oled.c
|
|
../../oled/connection.c
|
|
../../oled/ssd1306/ssd1306.c
|
|
../../oled/sh1106/sh1106.c
|
|
|
|
helpers/src/mock_i2c.c
|
|
oled_test.c
|
|
)
|
|
|
|
add_definitions(-DTEST)
|
|
add_executable(${TEST_NAME} ${SRCS})
|
|
|
|
target_include_directories(${TEST_NAME} PUBLIC ${INCLUDE_DIRS}) |