-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (30 loc) · 961 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 3.13)
project(SDCard)
set(CMAKE_CXX_STANDARD 17)
add_library(SDCard INTERFACE)
target_sources(SDCard
INTERFACE
sdCard/SDCard.hpp
sdCard/SDCard_info.h
)
target_include_directories(SDCard INTERFACE sdCard/)
if(UNIX OR WIN32 OR CYGWIN OR MSYS OR MINGW)
add_executable(SDCardTest)
target_sources(SDCardTest
PRIVATE
main.cpp
external/spiDriver/spidriver.h
external/spiDriver/spidriver.c
external/FatLib/source/ff.c
external/FatLib/source/ffsystem.c
external/FatLib/source/ffunicode.c
external/FatLib/source/ffconf.h
external/FatLib/source/ff.h
external/FatLib/source/diskio.h
)
target_include_directories(SDCardTest
PRIVATE
external/
)
target_link_libraries(SDCardTest SDCard)
endif()