Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gate-servo-controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Vítek
gate-servo-controller
Commits
e88b8288
Commit
e88b8288
authored
8 years ago
by
Martin Vítek
Browse files
Options
Downloads
Patches
Plain Diff
Add CMakeLists.txt
parent
558aea99
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SW/CMakeLists.txt
+44
-0
44 additions, 0 deletions
SW/CMakeLists.txt
with
44 additions
and
0 deletions
SW/CMakeLists.txt
0 → 100644
+
44
−
0
View file @
e88b8288
cmake_minimum_required
(
VERSION 3.0
)
set
(
AVR_UPLOADTOOL avrdude
)
set
(
AVR_PROGRAMMER usbasp
)
set
(
AVR_UPLOADTOOL_PORT usb
)
set
(
AVR_MCU atmega8
)
set
(
AVR_H_FUSE 0xC8
)
set
(
AVR_L_FUSE 0x1F
)
#set(CMAKE_BUILD_TYPE RelWithDebInfo)
set
(
CMAKE_BUILD_TYPE Release
)
set
(
MCU_SPEED
"14745600UL"
)
set
(
WITH_MCU OFF
)
set
(
WITH_MCU OFF CACHE BOOL
"Add the mCU type to the target file name."
FORCE
)
find_package
(
avr
)
project
(
gate-servo-controller
)
add_definitions
(
"-DF_CPU=
${
MCU_SPEED
}
"
)
add_definitions
(
"-fpack-struct"
)
add_definitions
(
"-fshort-enums"
)
add_definitions
(
"-Wall"
)
add_definitions
(
"-funsigned-char"
)
add_definitions
(
"-funsigned-bitfields"
)
add_definitions
(
"-ffunction-sections"
)
add_definitions
(
"-fdata-sections"
)
add_definitions
(
"-fno-exceptions"
)
add_definitions
(
"-mcall-prologues"
)
add_definitions
(
"-mrelax"
)
add_definitions
(
"-c"
)
add_definitions
(
"-std=c++14"
)
set
(
CMAKE_CXX_FLAGS
${
CMAKE_CXX_FLAGS
}
"-Wl,--gc-sections -Wl,--relax -Os -mrelax"
)
set
(
SOURCE_FILES
main.cpp
)
include_directories
(
libs/src
)
add_subdirectory
(
libs rk
)
add_avr_executable
(
gate-servo-controller
${
SOURCE_FILES
}
)
avr_target_link_libraries
(
gate-servo-controller rk
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment