Skip to content

Commit 447723c

Browse files
CMakeLists.txt
1 parent 32ce427 commit 447723c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmake/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11

22
file(GLOB SOURCES "${CMAKE_CURRENT_LIST_DIR}/../src/*.cpp")
33

4-
add_library(TaskManagerIO ${SOURCES})
4+
add_library(TaskManagerIO INTERFACE ${SOURCES})
55

66
target_compile_definitions(TaskManagerIO
7-
PUBLIC BUILD_FOR_PICO_CMAKE=1 BUILD_PICO_FORCE_UART=1 IO_LOGGING_DEBUG=1
7+
INTERFACE BUILD_FOR_PICO_CMAKE=1 BUILD_PICO_FORCE_UART=1 IO_LOGGING_DEBUG=1
88
)
99

10-
target_include_directories(TaskManagerIO PUBLIC
10+
target_include_directories(TaskManagerIO INTERFACE
1111
${CMAKE_CURRENT_LIST_DIR}/../src
1212
)
1313

14-
target_link_libraries(TaskManagerIO PUBLIC TcMenuLog pico_stdlib pico_sync)
14+
target_link_libraries(TaskManagerIO INTERFACE TcMenuLog pico_stdlib pico_sync)

0 commit comments

Comments
 (0)