Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt - github.com/thirdpin/libopencm3_cpp_extensions.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a740cc5a6f2f2b95d8e43f3a82e34f84c7b7f577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cmake_minimum_required(VERSION 3.10)

project(cm3cpp LANGUAGES C CXX ASM)

add_library(${PROJECT_NAME} INTERFACE)

set(CM3CPP_LOCATION ${CMAKE_CURRENT_LIST_DIR})

target_sources(${PROJECT_NAME} INTERFACE
	${CM3CPP_LOCATION}/extra/one_wire.cpp
    ${CM3CPP_LOCATION}/irq/cm3cpp_irq.cpp
    ${CM3CPP_LOCATION}/utils/round_buffer.cpp
    ${CM3CPP_LOCATION}/cm3cpp_adc_dma.cpp
    ${CM3CPP_LOCATION}/cm3cpp_adc.cpp
    ${CM3CPP_LOCATION}/cm3cpp_gpio.cpp
    ${CM3CPP_LOCATION}/cm3cpp_i2c.cpp
    ${CM3CPP_LOCATION}/cm3cpp_spi.cpp
    ${CM3CPP_LOCATION}/cm3cpp_systick.cpp
    ${CM3CPP_LOCATION}/cm3cpp_timer.cpp
    ${CM3CPP_LOCATION}/cm3cpp_usart_rb.cpp
    ${CM3CPP_LOCATION}/cm3cpp_usart.cpp
    ${CM3CPP_LOCATION}/rs485.cpp
    ${CM3CPP_LOCATION}/cm3cpp_dma.cpp
)

target_include_directories(${PROJECT_NAME}
    INTERFACE
        ${CM3CPP_LOCATION}/../
)