Created
October 23, 2017 09:39
-
-
Save thomafred/9da7d7a6a89de709d2a80f4bde706754 to your computer and use it in GitHub Desktop.
SPIFFS CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# SPIFFS library | |
# | |
# Author: Peter Andersson | |
# https://github.com/pellepl | |
# | |
# CMakeLists.txt Author: Thomas Li Fredriksen | |
# thomas@continyou.no | |
# | |
# https://github.com/pellepl/spiffs | |
# | |
set( libspiffs_SRCS | |
src/spiffs_cache.c | |
src/spiffs_check.c | |
src/spiffs_gc.c | |
src/spiffs_hydrogen.c | |
src/spiffs_nucleus.c | |
src/spiffs_nucleus.h | |
) | |
add_library( spiffs ${libspiffs_SRCS} ) | |
target_include_directories(spiffs PUBLIC | |
${CMAKE_CURRENT_SOURCE_DIR}/src | |
${BSP_DIR}/../config | |
) | |
SET_TARGET_PROPERTIES( spiffs PROPERTIES LINKER_LANGUAGE C ) | |
if( NOT CMAKE_CROSSCOMPILING ) | |
enable_testing() | |
add_executable( test_spiffs | |
src/test/main.c | |
src/test/params_test.h | |
src/test/test_bugreports.c | |
src/test/test_check.c | |
src/test/test_dev.c | |
src/test/test_hydrogen.c | |
src/test/test_spiffs.c | |
src/test/test_spiffs.h | |
src/test/testrunner.c | |
src/test/testrunner.h | |
src/test/testsuites.c | |
) | |
target_link_libraries( test_spiffs spiffs ) | |
add_test( | |
NAME test_spiffs | |
COMMAND test_spiffs | |
) | |
endif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment