Skip to content

Commit df06039

Browse files
ValentiWorkLearningVKorniienko
authored and
VKorniienko
committed
Added forgotten CMakeLists.txt file to the filesystem #17
1 parent a02d905 commit df06039

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Firmware/filesystem/CMakeLists.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
if(WIN32 OR UNIX)
2+
find_package(spdlog REQUIRED)
3+
endif()
4+
5+
add_library(filesystem INTERFACE filesystem/filesystem_holder.hpp)
6+
7+
target_sources(filesystem INTERFACE
8+
filesystem/block_device_wrapper/ih_block_device.hpp
9+
filesystem/block_device_wrapper/heap_block_device.hpp
10+
filesystem/block_device_wrapper/adaptor_block_device.hpp
11+
)
12+
13+
target_include_directories(filesystem INTERFACE ${CMAKE_CURRENT_LIST_DIR} )
14+
15+
target_link_libraries(filesystem INTERFACE
16+
littlefs
17+
)
18+
19+
if(WIN32 OR UNIX)
20+
target_link_libraries(filesystem INTERFACE spdlog::spdlog)
21+
endif()

0 commit comments

Comments
 (0)