Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ardupilot
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
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SASC
ardupilot
Commits
c85d6b05
Commit
c85d6b05
authored
13 years ago
by
James Goppert
Browse files
Options
Downloads
Patches
Plain Diff
cmake overhaul, cleaned up readme, added license
parent
7f5f9252
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+29
-7
29 additions, 7 deletions
CMakeLists.txt
COPYING.txt
+674
-0
674 additions, 0 deletions
COPYING.txt
README.txt
+19
-0
19 additions, 0 deletions
README.txt
with
722 additions
and
7 deletions
CMakeLists.txt
+
29
−
7
View file @
c85d6b05
...
@@ -19,7 +19,6 @@ if( NOT DEFINED CMAKE_BUILD_TYPE )
...
@@ -19,7 +19,6 @@ if( NOT DEFINED CMAKE_BUILD_TYPE )
set
(
CMAKE_BUILD_TYPE
"RelWithDebInfo"
)
set
(
CMAKE_BUILD_TYPE
"RelWithDebInfo"
)
endif
()
endif
()
#set (CMAKE_CXX_SOURCE_FILE_EXTENSIONS pde)
find_package
(
Arduino 22 REQUIRED
)
find_package
(
Arduino 22 REQUIRED
)
...
@@ -30,15 +29,38 @@ if (NOT DEFINED BOARD)
...
@@ -30,15 +29,38 @@ if (NOT DEFINED BOARD)
endif
()
endif
()
message
(
STATUS
"Board configured as:
${
BOARD
}
"
)
message
(
STATUS
"Board configured as:
${
BOARD
}
"
)
set
(
CMAKE_CXX_SOURCE_FILE_EXTENSIONS pde
)
# apo
# apo
set
(
apo_ASFLAGS
"-assembler-with-cpp"
)
#
set(apo_ASFLAGS "-assembler-with-cpp")
set
(
apo_BOARD
${
BOARD
}
)
set
(
apo_BOARD
${
BOARD
}
)
set
(
apo_LIBS
c
m
)
set
(
apo_SRCS
set
(
apo_SRCS
apo/apo.cpp
apo/apo.cpp
)
)
set
(
GCS_MAVLink_RECURSE False
)
generate_arduino_firmware
(
apo
)
generate_arduino_firmware
(
apo
)
# ArduRover
set
(
ArduRover_BOARD
${
BOARD
}
)
set
(
ArduRover_SRCS
ArduRover/ArduRover.pde
)
#generate_arduino_firmware(ArduRover)
# ArduBoat
set
(
ArduRover_BOARD
${
BOARD
}
)
set
(
ArduRover_SRCS
ArduRover/ArduRover.pde
)
#generate_arduino_firmware(ArduBoat)
# ArduPlane
set
(
ArduPlane
${
BOARD
}
)
set
(
ArduPlane_SRCS
)
#generate_arduino_firmware(ArduPlane)
# ArduCopter
set
(
ArduCopter
${
BOARD
}
)
set
(
ArduCopter_SRCS
)
#generate_arduino_firmware(ArduCopter)
This diff is collapsed.
Click to expand it.
COPYING.txt
0 → 100644
+
674
−
0
View file @
c85d6b05
This diff is collapsed.
Click to expand it.
README.txt
0 → 100644
+
19
−
0
View file @
c85d6b05
Building using arduino
--------------------------
To install the libraries:
- copy Library Directories to your \arduino\hardware\libraries\ or arduino\libraries directory
- Restart arduino IDE
* Each library comes with a simple example. You can find the examples in menu File->Examples
Building using make
-----------------------------------------------
- go to directory of sketch and type make.
Building using cmake
-----------------------------------------------
- mkdir build
- cd build
- cmake ..
- make (will build every sketch)
- make ArduPlane (will build just ArduPlane etc.)
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