Skip to content

Commit

Permalink
Add sys only if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jul 15, 2022
1 parent 1ff7fd8 commit f02da2f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lwow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ message("Entering ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt")

# Library core sources
set(lwow_core_SRCS
${CMAKE_CURRENT_LIST_DIR}/src/lwow/lwow.c
)
${CMAKE_CURRENT_LIST_DIR}/src/lwow/lwow.c)

if (DEFINED LWOW_SYS_PORT)
set(lwow_core_SRCS ${lwow_core_SRCS} ${CMAKE_CURRENT_LIST_DIR}/src/system/lwow_sys_${LWOW_SYS_PORT}.c)
set(lwow_core_SRCS
${lwow_core_SRCS}
${CMAKE_CURRENT_LIST_DIR}/src/system/lwow_sys_${LWOW_SYS_PORT}.c)
endif()

# Devices
set(lwow_devices_SRCS
${CMAKE_CURRENT_LIST_DIR}/src/devices/lwow_device_ds18x20.c
)
${CMAKE_CURRENT_LIST_DIR}/src/devices/lwow_device_ds18x20.c)

# Setup include directories
set(lwow_include_DIRS
${CMAKE_CURRENT_LIST_DIR}/src/include
)
${CMAKE_CURRENT_LIST_DIR}/src/include)

# Register core library to the system
add_library(lwow INTERFACE)
Expand Down

0 comments on commit f02da2f

Please sign in to comment.