Skip to content

Commit b4b1746

Browse files
Fix CMakeLists.txt
1 parent 4a53585 commit b4b1746

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

cmake/CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
file(GLOB SOURCES
2-
"${CMAKE_CURRENT_LIST_DIR}/../src/*.cpp"
3-
)
1+
cmake_minimum_required(VERSION 3.13)
42

5-
add_library(SimpleCollections ${SOURCES})
3+
add_library(SimpleCollections
4+
../src/SCCircularBuffer.cpp
5+
../src/SCThreadingSupport.cpp
6+
../src/SimpleCollections.cpp
7+
)
68

79

810
target_compile_definitions(SimpleCollections
911
PUBLIC BUILD_FOR_PICO_CMAKE=1 BUILD_PICO_FORCE_UART=1 IO_LOGGING_DEBUG=1
1012
)
1113
target_include_directories(SimpleCollections PUBLIC
12-
${CMAKE_CURRENT_LIST_DIR}/../src
14+
../src
1315
)
1416

1517
target_link_libraries(SimpleCollections PUBLIC pico_stdlib pico_sync)

0 commit comments

Comments
 (0)