-
Notifications
You must be signed in to change notification settings - Fork 38
/
CMakeLists.txt
31 lines (26 loc) · 1.02 KB
/
CMakeLists.txt
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
30
31
## ./targets/riscv/mikroe/gigadevice/src/one_wire/CMakeLists.txt
set(hal_ll_def_list)
list(APPEND hal_ll_def_list "MACRO_USAGE_ONE_WIRE")
mikrosdk_add_library(lib_hal_ll_one_wire MikroSDK.HalLowLevel.OneWire
hal_ll_one_wire.c
../../include/one_wire/hal_ll_one_wire.h
)
target_compile_definitions(lib_hal_ll_one_wire PUBLIC
${hal_ll_def_list}
)
target_link_libraries(lib_hal_ll_one_wire PUBLIC
MikroC.Core
MikroSDK.HalLowLevel.GPIO
MikroSDK.HalLowLevelCommon
)
target_include_directories(lib_hal_ll_one_wire
PRIVATE
../../include/one_wire
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include/gpio>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include/one_wire>
$<INSTALL_INTERFACE:include/hal_ll_port>
)
mikrosdk_install(MikroSDK.HalLowLevel.OneWire)
install_headers(${CMAKE_INSTALL_PREFIX}/include/hal_ll_port MikroSDK.HalLowLevel.OneWire ../../include/one_wire/hal_ll_one_wire.h)