Newer
Older
cmake_minimum_required(VERSION 2.8)
include(${CMAKE_CURRENT_LIST_DIR}/../common.cmake)
add_subdirectory(lib)
project(radio_power_test)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include_directories(
Edward Longman
committed
$ENV{MSP_GCC_ROOT}/include
Edward Longman
committed
${CMAKE_CURRENT_LIST_DIR}
Edward Longman
committed
$ENV{MSP_GCC_ROOT}/include
Edward Longman
committed
# See if even the minimal will compile.
add_executable(${PROJECT_NAME}_min test/min.c lib/hal_mcu/hal_mcu.c)
target_link_libraries(${PROJECT_NAME}_min uart_drv)
add_executable(${PROJECT_NAME}_min2 test/min2.c lib/hal_mcu/hal_mcu.c)
target_link_libraries(${PROJECT_NAME}_min2 uart_drv)
Edward Longman
committed
add_executable(${PROJECT_NAME}_rxer test/LaunchPad_trx_main.c test/LaunchPad_trx_demo.c)
target_link_libraries(${PROJECT_NAME}_rxer hal_mcu radio_drv)
Edward Longman
committed
# add_executable(${PROJECT_NAME}_txer test/main_rxer.c)
# target_compile_definitions(${PROJECT_NAME}_rxer PUBLIC TXER)
# target_link_libraries(${PROJECT_NAME}_txer hibernus zeta util spi)