Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Copyright (C) 2011 Devin DeLong
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
- # Define the project.
- project (arduino)
- # Require version 2.8.
- cmake_minimum_required (VERSION 2.8)
- # This will need to change when compiling for a different board. I'm not sure
- # how exactly to do this automatically, rather than manually editing this file.
- include (${CMAKE_SOURCE_DIR}/cmake/arduino-duemilanove.cmake)
- # The Public includes.
- include_directories (${CMAKE_SOURCE_DIR}/include)
- ## Variable definitions.
- ##############################################################################
- set (SRC_DIR ${CMAKE_SOURCE_DIR}/src)
- # Libraries to compile.
- set (CORE_LIBRARY ${SRC_DIR}/Core)
- set (EEPROM_LIBRARY ${SRC_DIR}/EEPROM)
- set (ETHERNET_LIBRARY ${SRC_DIR}/Ethernet)
- set (FIRMATA_LIBRARY ${SRC_DIR}/Firmata)
- set (LIQUIDCRYSTAL_LIBRARY ${SRC_DIR}/LiquidCrystal)
- set (MATRIX_LIBRARY ${SRC_DIR}/Matrix)
- set (SD_LIBRARY ${SRC_DIR}/SD)
- set (SERVO_LIBRARY ${SRC_DIR}/Servo)
- set (SOFTWARESERIAL_LIBRARY ${SRC_DIR}/SoftwareSerial)
- set (SPI_LIBRARY ${SRC_DIR}/SPI)
- set (SPRITE_LIBRARY ${SRC_DIR}/Sprite)
- set (STEPPER_LIBRARY ${SRC_DIR}/Stepper)
- set (WIRE_LIBRARY ${SRC_DIR}/Wire)
- ## The libraries to compile
- ## TODO: Make it configurable. That is, add switches to enable/disable
- ## compilation of a library.
- #################################################################################
- add_subdirectory (${CORE_LIBRARY})
- add_subdirectory (${EEPROM_LIBRARY})
- add_subdirectory (${SPI_LIBRARY})
- add_subdirectory (${ETHERNET_LIBRARY})
- add_subdirectory (${FIRMATA_LIBRARY})
- add_subdirectory (${LIQUIDCRYSTAL_LIBRARY})
- add_subdirectory (${SPRITE_LIBRARY})
- add_subdirectory (${MATRIX_LIBRARY})
- add_subdirectory (${SD_LIBRARY})
- add_subdirectory (${SERVO_LIBRARY})
- add_subdirectory (${SOFTWARESERIAL_LIBRARY})
- add_subdirectory (${STEPPER_LIBRARY})
- add_subdirectory (${WIRE_LIBRARY})
- # Print some status information to ensure everything is correct.
- #message (STATUS "CXX compiler - ${CMAKE_CXX_COMPILER}")
- #message (STATUS "C compiler - ${CMAKE_C_COMPILER}")
- #message (STATUS "Arduino clock frequency - ${ARDUINO_FCPU}")
- #message (STATUS "Arduino processor - ${ARDUINO_MCPU}")
- #project(MYPROJECT)
- #
- #cmake_minimum_required(VERSION 2.6)
- #
- #include(${CMAKE_SOURCE_DIR}/scripts/arduino_uno.cmake)
- #
- #set(MYPROJECT_SOURCE_FILES
- # ${CMAKE_SOURCE_DIR}/src/main.cpp
- # ${ARDUINO_SOURCE_FILES}
- #)
- #
- #add_executable(firmware ${MYPROJECT_SOURCE_FILES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement