73 lines
1.4 KiB
CMake
73 lines
1.4 KiB
CMake
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
|
project(rkmesh_transparent
|
|
LANGUAGES
|
|
C CXX
|
|
)
|
|
|
|
add_subdirectory(skullc-peripherals)
|
|
|
|
add_executable(rkmesh_transparent
|
|
hal/src/hal.c
|
|
hal/src/halPhy.c
|
|
hal/src/halStartup.c
|
|
hal/src/halTimer.c
|
|
phy/src/phy.c
|
|
sys/src/sys.c
|
|
sys/src/sysEncrypt.c
|
|
sys/src/sysTimer.c
|
|
nwk/src/nwk.c
|
|
nwk/src/nwkDataReq.c
|
|
nwk/src/nwkFrame.c
|
|
nwk/src/nwkGroup.c
|
|
nwk/src/nwkRoute.c
|
|
nwk/src/nwkRouteDiscovery.c
|
|
nwk/src/nwkRx.c
|
|
nwk/src/nwkSecurity.c
|
|
nwk/src/nwkTx.c
|
|
|
|
app/src/Board.cpp
|
|
app/src/RequestPool.cpp
|
|
app/src/TransparentApp.cpp
|
|
app/src/main.cpp
|
|
app/src/syslib.c
|
|
)
|
|
|
|
target_include_directories(rkmesh_transparent
|
|
PRIVATE
|
|
hal/inc
|
|
hal/inc/component
|
|
hal/inc/instance
|
|
hal/inc/pio
|
|
sys/inc
|
|
phy/inc
|
|
nwk/inc
|
|
app/inc
|
|
)
|
|
|
|
#set_property(TARGET rkmesh_transparent PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
|
|
target_compile_definitions(rkmesh_transparent
|
|
PRIVATE
|
|
PHY_AT86RF233
|
|
HAL_ATSAMD21J18
|
|
PLATFORM_XPLAINED_PRO_SAMR21
|
|
F_CPU=8000000
|
|
)
|
|
|
|
target_compile_options(rkmesh_transparent
|
|
PRIVATE
|
|
-Wall
|
|
-Wextra
|
|
)
|
|
|
|
target_link_libraries(rkmesh_transparent
|
|
PRIVATE
|
|
skullc::utility
|
|
)
|
|
|
|
target_link_options(rkmesh_transparent
|
|
PRIVATE
|
|
-Wl,--script=${CMAKE_CURRENT_LIST_DIR}/linker/atsamd21j18.ld
|
|
-Wl,--gc-sections
|
|
)
|