169 lines
5.4 KiB
CMake
169 lines
5.4 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(lvgl_guider_bm)
|
|
|
|
set(MCUX_BUILD_TYPES debug release)
|
|
|
|
set(MCUX_SDK_PROJECT_NAME lvgl_guider_bm.elf)
|
|
|
|
if (NOT DEFINED SdkRootDirPath)
|
|
SET(SdkRootDirPath ${ProjDirPath}/../../../../../..)
|
|
endif()
|
|
|
|
include(${ProjDirPath}/flags.cmake)
|
|
|
|
include(${ProjDirPath}/config.cmake)
|
|
|
|
add_executable(${MCUX_SDK_PROJECT_NAME}
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/RTE_Device.h"
|
|
"${ProjDirPath}/../lvgl_guider_bm.c"
|
|
"${ProjDirPath}/../lv_conf.h"
|
|
"${ProjDirPath}/../pin_mux.c"
|
|
"${ProjDirPath}/../pin_mux.h"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated/images/images.c"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated/guider_fonts/guider_fonts.h"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated/guider_customer_fonts/guider_customer_fonts.h"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated/gui_guider.c"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated/gui_guider.h"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated/events_init.c"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated/events_init.h"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/custom/custom.c"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/custom/custom.h"
|
|
"${ProjDirPath}/../board.c"
|
|
"${ProjDirPath}/../board.h"
|
|
"${ProjDirPath}/../clock_config.c"
|
|
"${ProjDirPath}/../clock_config.h"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_support.h"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_support.c"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_demo_utils.h"
|
|
"${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_demo_utils.c"
|
|
)
|
|
|
|
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
|
|
${ProjDirPath}/..
|
|
${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples
|
|
${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated
|
|
${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/custom
|
|
${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated/guider_customer_fonts
|
|
${SdkRootDirPath}/boards/lpcxpresso55s69/lvgl_examples/lvgl_guider_bm/generated/guider_fonts
|
|
)
|
|
|
|
set(CMAKE_MODULE_PATH
|
|
${SdkRootDirPath}/components/ili9341
|
|
${SdkRootDirPath}/components/ft6x06
|
|
${SdkRootDirPath}/devices/LPC55S69/drivers
|
|
${SdkRootDirPath}/devices/LPC55S69/cmsis_drivers
|
|
${SdkRootDirPath}/middleware/lvgl
|
|
${SdkRootDirPath}/devices/LPC55S69
|
|
${SdkRootDirPath}/devices/LPC55S69/utilities
|
|
${SdkRootDirPath}/components/uart
|
|
${SdkRootDirPath}/components/serial_manager
|
|
${SdkRootDirPath}/components/lists
|
|
${SdkRootDirPath}/CMSIS/Core/Include
|
|
${SdkRootDirPath}/CMSIS/Driver/Include
|
|
)
|
|
|
|
# include modules
|
|
include(driver_ili9341_LPC55S69_cm33_core0)
|
|
|
|
include(driver_ft6x06_LPC55S69_cm33_core0)
|
|
|
|
include(driver_flexcomm_spi_dma_LPC55S69_cm33_core0)
|
|
|
|
include(driver_flexcomm_i2c_LPC55S69_cm33_core0)
|
|
|
|
include(driver_flexcomm_spi_LPC55S69_cm33_core0)
|
|
|
|
include(driver_cmsis_flexcomm_spi_LPC55S69_cm33_core0)
|
|
|
|
include(driver_inputmux_LPC55S69_cm33_core0)
|
|
|
|
include(driver_cmsis_flexcomm_i2c_LPC55S69_cm33_core0)
|
|
|
|
include(driver_inputmux_connections_LPC55S69_cm33_core0)
|
|
|
|
include(driver_flexcomm_i2c_dma_LPC55S69_cm33_core0)
|
|
|
|
include(driver_lpc_dma_LPC55S69_cm33_core0)
|
|
|
|
include(driver_common_LPC55S69_cm33_core0)
|
|
|
|
include(middleware_lvgl_LPC55S69_cm33_core0)
|
|
|
|
include(driver_clock_LPC55S69_cm33_core0)
|
|
|
|
include(driver_power_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(driver_reset_LPC55S69_cm33_core0)
|
|
|
|
include(CMSIS_Include_core_cm_LPC55S69_cm33_core0)
|
|
|
|
include(CMSIS_Driver_Include_I2C_LPC55S69_cm33_core0)
|
|
|
|
include(CMSIS_Driver_Include_Common_LPC55S69_cm33_core0)
|
|
|
|
include(CMSIS_Driver_Include_SPI_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)
|
|
|
|
|