forked from xmos/lib_sdram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
59 lines (57 loc) · 2.79 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#=============================================================================
# Library creator shall specify the following variables:
# LIB_NAME Name of the library
# May only contain alphanumeric and space, dash, and
# underscore characters.
# ex: set(LIB_NAME lib_foo)
# LIB_VERSION Version of the library
# Must follow semantic version format.
# ex: set(LIB_VERSION 1.0.0)
# LIB_ADD_COMPILER_FLAGS Additional compiler flags
# ex: set(LIB_ADD_COMPILER_FLAGS "-oS")
# LIB_XC_SRCS List of all library XC sources
# Shall be set to "" if no XC sources exist
# ex: set(LIB_XC_SRCS "foo.xc" "bar.xc")
# LIB_C_SRCS List of all library C sources
# Shall be set to "" if no C sources exist
# ex: set(LIB_C_SRCS "foo.c" "bar.c")
# LIB_ASM_SRCS List of all library ASM sources
# Shall be set to "" if no ASM sources exist
# ex: set(LIB_ASM_SRCS "foo.S" "bar.S")
# LIB_INCLUDES List of all library include directories
# Shall be set to all directories include .h files
# ex: set(LIB_INCLUDES "foo/bar")
# LIB_DEPENDENT_MODULES List of all dependency libraries with version
# Every list item shall include a dependency name,
# which must also be the folder in which the library
# CMakeLists.txt exists, and a version requirement.
# Version requirements shall be in the format:
# ([bool req][major].[minor].[patch])
# ex: set(LIB_DEPENDENT_MODULES "lib_foo(>=1.0.0)")
# LIB_OPTIONAL_HEADERS List of optional header files
# Must contain full header file names
# ex: set(LIB_OPTIONAL_HEADERS "foo.h" "bar.h")
set(LIB_NAME lib_sdram)
set(LIB_VERSION 3.2.0)
set(LIB_ADD_COMPILER_FLAGS "")
set(LIB_XC_SRCS
"lib_sdram/src/client.xc"
"lib_sdram/src/memory_address_allocator.xc"
"lib_sdram/src/server.xc"
)
set(LIB_C_SRCS
""
)
set(LIB_ASM_SRCS
"lib_sdram/src/io.S"
)
set(LIB_INCLUDES
"lib_sdram/api"
"lib_sdram/src"
)
set(LIB_DEPENDENT_MODULES "")
set(LIB_OPTIONAL_HEADERS "")
#=============================================================================
# The following part of the CMakeLists includes the common build infrastructure
# for compiling XMOS applications. You should not need to edit below here.
XMOS_REGISTER_MODULE()