forked from rckstrh/mspm0_bsl_flasher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (20 loc) · 917 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 3.0.0)
set(VERSION_MAJOR 0)
set(VERSION_MINOR 3)
set(VERSION_PATCH 0)
project(MSPM0_bsl_flasher VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH} LANGUAGES C CXX)
ADD_DEFINITIONS( -D_PROJECT_NAME_=\"${PROJECT_NAME}\")
ADD_DEFINITIONS( -D_VERSION_MAJOR_=\"${VERSION_MAJOR}\")
ADD_DEFINITIONS( -D_VERSION_MINOR_=\"${VERSION_MINOR}\")
ADD_DEFINITIONS( -D_VERSION_PATCH_=\"${VERSION_PATCH}\")
include(CTest)
enable_testing()
include_directories(drivers)
include_directories(prog)
find_package( Boost REQUIRED COMPONENTS program_options )
include_directories( ${Boost_INCLUDE_DIRS} )
add_executable(MSPM0_bsl_flasher main.cpp drivers/bsl_tool.cpp drivers/serial.cpp drivers/bsl_uart.cpp drivers/bsl_gpio.cpp)
target_link_libraries(MSPM0_bsl_flasher Boost::program_options)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)