MCUXpresso_LPC55S69/boards/lpcxpresso55s69/demo_apps/puf_hashcrypt_crypto/cm33_core0/armgcc/CMakeLists.txt
Yilin Sun 3969019d6a
Updated SDK v2.13.0
Signed-off-by: Yilin Sun <imi415@imi.moe>
2023-01-26 10:53:53 +08:00

121 lines
3.0 KiB
CMake

# CROSS COMPILER SETTING
SET(CMAKE_SYSTEM_NAME Generic)
CMAKE_MINIMUM_REQUIRED (VERSION 3.10.0)
# THE VERSION NUMBER
SET (Tutorial_VERSION_MAJOR 1)
SET (Tutorial_VERSION_MINOR 0)
# ENABLE ASM
ENABLE_LANGUAGE(ASM)
SET(CMAKE_STATIC_LIBRARY_PREFIX)
SET(CMAKE_STATIC_LIBRARY_SUFFIX)
SET(CMAKE_EXECUTABLE_LIBRARY_PREFIX)
SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})
SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
project(puf_hashcrypt_crypto)
set(MCUX_BUILD_TYPES debug release)
set(MCUX_SDK_PROJECT_NAME puf_hashcrypt_crypto.elf)
if (NOT DEFINED SdkRootDirPath)
SET(SdkRootDirPath ${ProjDirPath}/../../../../../..)
endif()
include(${ProjDirPath}/flags.cmake)
include(${ProjDirPath}/config.cmake)
add_executable(${MCUX_SDK_PROJECT_NAME}
"${ProjDirPath}/../puf_hashcrypt_crypto.c"
"${ProjDirPath}/../pin_mux.c"
"${ProjDirPath}/../pin_mux.h"
"${ProjDirPath}/../board.c"
"${ProjDirPath}/../board.h"
"${ProjDirPath}/../clock_config.c"
"${ProjDirPath}/../clock_config.h"
)
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${ProjDirPath}/..
${SdkRootDirPath}/boards/lpcxpresso55s69/demo_apps/puf_hashcrypt_crypto
)
set(CMAKE_MODULE_PATH
${SdkRootDirPath}/devices/LPC55S69/drivers
${SdkRootDirPath}/devices/LPC55S69
${SdkRootDirPath}/devices/LPC55S69/utilities
${SdkRootDirPath}/components/uart
${SdkRootDirPath}/components/serial_manager
${SdkRootDirPath}/components/lists
${SdkRootDirPath}/CMSIS/Core/Include
)
# include modules
include(driver_rng_1_LPC55S69_cm33_core0)
include(driver_puf_LPC55S69_cm33_core0)
include(driver_hashcrypt_LPC55S69_cm33_core0)
include(driver_common_LPC55S69_cm33_core0)
include(driver_power_LPC55S69_cm33_core0)
include(driver_reset_LPC55S69_cm33_core0)
include(driver_clock_LPC55S69_cm33_core0)
include(device_LPC55S69_CMSIS_LPC55S69_cm33_core0)
include(device_LPC55S69_startup_LPC55S69_cm33_core0)
include(driver_flexcomm_usart_LPC55S69_cm33_core0)
include(driver_flexcomm_LPC55S69_cm33_core0)
include(driver_lpc_iocon_LPC55S69_cm33_core0)
include(driver_lpc_gpio_LPC55S69_cm33_core0)
include(utility_assert_LPC55S69_cm33_core0)
include(utility_debug_console_LPC55S69_cm33_core0)
include(component_usart_adapter_LPC55S69_cm33_core0)
include(component_serial_manager_LPC55S69_cm33_core0)
include(component_lists_LPC55S69_cm33_core0)
include(component_serial_manager_uart_LPC55S69_cm33_core0)
include(CMSIS_Include_core_cm_LPC55S69_cm33_core0)
include(utilities_misc_utilities_LPC55S69_cm33_core0)
include(device_LPC55S69_system_LPC55S69_cm33_core0)
IF(NOT DEFINED TARGET_LINK_SYSTEM_LIBRARIES)
SET(TARGET_LINK_SYSTEM_LIBRARIES "-lm -lc -lgcc -lnosys")
ENDIF()
TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE ${TARGET_LINK_SYSTEM_LIBRARIES})
TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--end-group)