css_cmake_test/CMakeLists.txt

48 lines
1.5 KiB
CMake
Raw Normal View History

2024-01-19 12:18:27 +03:00
cmake_minimum_required( VERSION 3.5)
SET (TARGET_NAME test_project)
#message( STATUS "CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}" )
set(CGT_TOOLCHAIN_DIR /home/lobov/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS)
SET(CL2000_LINK ${CGT_TOOLCHAIN_DIR}/bin/cl2000)
SET(CMAKE_CXX_COMPILER ${CL2000_LINK} )
SET(CMAKE_C_COMPILER ${CL2000_LINK} )
SET(CMAKE_CXX_LINK_EXECUTABLE ${CL2000_LINK})
project(cmake_test)
SET (FLAGS -v28 -ml -mt --float_support=fpu32 -Ooff --opt_for_speed=5
--fp_mode=relaxed -advice:performance=all --define=_INLINE --define=bmin='0.397824735f' --define=amax='0.960433870f'
--float_operations_allowed=32 --printf_support=minimal
--include_path="/home/lobov/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/"
--include_path="/home/lobov/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include/" )
include_directories( "${PROJECT_BINARY_DIR}")
add_executable(${TARGET_NAME} main.cpp
./f2833x/common/source/DSP2833x_ADC_cal.asm
./f2833x/common/source/DSP2833x_CodeStartBranch.asm
./f2833x/common/source/DSP2833x_DefaultIsr.c
./f2833x/headers/source/DSP2833x_GlobalVariableDefs.c
./f2833x/common/source/DSP2833x_PieCtrl.c
./f2833x/common/source/DSP2833x_PieVect.c
./f2833x/common/source/DSP2833x_SysCtrl.c
./f2833x/common/source/DSP2833x_usDelay.asm
)
set(INCLUDES
./f2833x
./f2833x/common/include
./f2833x/headers/include
)
target_compile_options (${TARGET_NAME} PRIVATE ${FLAGS}
)
target_include_directories(${TARGET_NAME} PRIVATE ${INCLUDES}
)