MCUXpresso_MIMXRT1021xxxxx/boards/evkmimxrt1020/soem_examples/soem_gpio_pulse/freertos/armgcc/CMakeLists.txt

140 lines
3.6 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(soem_gpio_pulse_freertos)
set(MCUX_SDK_PROJECT_NAME soem_gpio_pulse_freertos.elf)
include(${ProjDirPath}/flags.cmake)
include(${ProjDirPath}/config.cmake)
add_executable(${MCUX_SDK_PROJECT_NAME}
"${ProjDirPath}/../pin_mux.c"
"${ProjDirPath}/../pin_mux.h"
"${ProjDirPath}/../soem_gpio_pulse.c"
"${ProjDirPath}/../FreeRTOSConfig.h"
"${ProjDirPath}/../board.c"
"${ProjDirPath}/../board.h"
"${ProjDirPath}/../clock_config.c"
"${ProjDirPath}/../clock_config.h"
"${ProjDirPath}/../dcd.c"
"${ProjDirPath}/../dcd.h"
)
target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE
${ProjDirPath}/..
${ProjDirPath}/../../../../../../middleware/soem/osal/freertos
)
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../../components/phy/mdio/enet
${ProjDirPath}/../../../../../../components/phy/device/phyksz8081
${ProjDirPath}/../../../../../../devices/MIMXRT1021/drivers
${ProjDirPath}/../../../../../../middleware/soem
${ProjDirPath}/../../../../../../rtos/freertos/freertos_kernel
${ProjDirPath}/../../../../../../devices/MIMXRT1021
${ProjDirPath}/../../../../../../devices/MIMXRT1021/utilities
${ProjDirPath}/../../../../../../components/uart
${ProjDirPath}/../../../../../../components/serial_manager
${ProjDirPath}/../../../../../../components/lists
${ProjDirPath}/../../../../../../devices/MIMXRT1021/xip
${ProjDirPath}/../../../../xip
${ProjDirPath}/../../../../../../components/silicon_id
${ProjDirPath}/../../../../../../components/phy
${ProjDirPath}/../../../../../../CMSIS/Core/Include
)
# include modules
include(driver_mdio-enet_MIMXRT1021)
include(driver_phy-device-ksz8081_MIMXRT1021)
include(driver_gpt_MIMXRT1021)
include(middleware_soem_MIMXRT1021)
include(middleware_freertos-kernel_MIMXRT1021)
include(driver_clock_MIMXRT1021)
include(driver_common_MIMXRT1021)
include(device_MIMXRT1021_CMSIS_MIMXRT1021)
include(utility_debug_console_MIMXRT1021)
include(component_lpuart_adapter_MIMXRT1021)
include(component_serial_manager_MIMXRT1021)
include(component_lists_MIMXRT1021)
include(component_serial_manager_uart_MIMXRT1021)
include(driver_lpuart_MIMXRT1021)
include(device_MIMXRT1021_startup_MIMXRT1021)
include(driver_iomuxc_MIMXRT1021)
include(utility_assert_MIMXRT1021)
include(driver_igpio_MIMXRT1021)
include(driver_xip_device_MIMXRT1021)
include(driver_xip_board_evkmimxrt1020_MIMXRT1021)
include(component_silicon_id_MIMXRT1021)
include(driver_mdio-common_MIMXRT1021)
include(CMSIS_Include_core_cm_MIMXRT1021)
include(driver_enet_MIMXRT1021)
include(driver_phy-common_MIMXRT1021)
include(middleware_freertos-kernel_extension_MIMXRT1021)
include(utilities_misc_utilities_MIMXRT1021)
include(device_MIMXRT1021_system_MIMXRT1021)
TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE m)
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE c)
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE gcc)
target_link_libraries(${MCUX_SDK_PROJECT_NAME} PRIVATE nosys)
TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--end-group)