Advertisement
Guest User

Untitled

a guest
Aug 14th, 2011
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 3.10 KB | None | 0 0
  1. #Copyright (C) 2011  Devin DeLong
  2. #
  3. #    This program is free software: you can redistribute it and/or modify
  4. #    it under the terms of the GNU General Public License as published by
  5. #    the Free Software Foundation, either version 3 of the License, or
  6. #    (at your option) any later version.
  7. #
  8. #    This program is distributed in the hope that it will be useful,
  9. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. #    GNU General Public License for more details.
  12. #
  13. #    You should have received a copy of the GNU General Public License
  14. #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  15.  
  16. # Define the project.
  17. project (arduino)
  18.  
  19. # Require version 2.8.
  20. cmake_minimum_required (VERSION 2.8)
  21.  
  22. # This will need to change when compiling for a different board.  I'm not sure
  23. # how exactly to do this automatically, rather than manually editing this file.
  24. include (${CMAKE_SOURCE_DIR}/cmake/arduino-duemilanove.cmake)
  25.  
  26. # The Public includes.
  27. include_directories (${CMAKE_SOURCE_DIR}/include)
  28.  
  29. ##  Variable definitions.
  30. ##############################################################################
  31.  
  32. set (SRC_DIR ${CMAKE_SOURCE_DIR}/src)
  33.  
  34. # Libraries to compile.
  35. set (CORE_LIBRARY ${SRC_DIR}/Core)
  36. set (EEPROM_LIBRARY ${SRC_DIR}/EEPROM)
  37. set (ETHERNET_LIBRARY ${SRC_DIR}/Ethernet)
  38. set (FIRMATA_LIBRARY ${SRC_DIR}/Firmata)
  39. set (LIQUIDCRYSTAL_LIBRARY ${SRC_DIR}/LiquidCrystal)
  40. set (MATRIX_LIBRARY ${SRC_DIR}/Matrix)
  41. set (SD_LIBRARY ${SRC_DIR}/SD)
  42. set (SERVO_LIBRARY ${SRC_DIR}/Servo)
  43. set (SOFTWARESERIAL_LIBRARY ${SRC_DIR}/SoftwareSerial)
  44. set (SPI_LIBRARY ${SRC_DIR}/SPI)
  45. set (SPRITE_LIBRARY ${SRC_DIR}/Sprite)
  46. set (STEPPER_LIBRARY ${SRC_DIR}/Stepper)
  47. set (WIRE_LIBRARY ${SRC_DIR}/Wire)
  48.  
  49. ## The libraries to compile
  50. ## TODO: Make it configurable.  That is, add switches to enable/disable
  51. ##           compilation of a library.
  52. #################################################################################
  53.  
  54. add_subdirectory (${CORE_LIBRARY})
  55. add_subdirectory (${EEPROM_LIBRARY})
  56. add_subdirectory (${SPI_LIBRARY})
  57. add_subdirectory (${ETHERNET_LIBRARY})
  58. add_subdirectory (${FIRMATA_LIBRARY})
  59. add_subdirectory (${LIQUIDCRYSTAL_LIBRARY})
  60. add_subdirectory (${SPRITE_LIBRARY})
  61. add_subdirectory (${MATRIX_LIBRARY})
  62. add_subdirectory (${SD_LIBRARY})
  63. add_subdirectory (${SERVO_LIBRARY})
  64. add_subdirectory (${SOFTWARESERIAL_LIBRARY})
  65. add_subdirectory (${STEPPER_LIBRARY})
  66. add_subdirectory (${WIRE_LIBRARY})
  67.  
  68. # Print some status information to ensure everything is correct.
  69. #message (STATUS "CXX compiler             - ${CMAKE_CXX_COMPILER}")
  70. #message (STATUS "C compiler               - ${CMAKE_C_COMPILER}")
  71. #message (STATUS "Arduino clock frequency  - ${ARDUINO_FCPU}")
  72. #message (STATUS "Arduino processor        - ${ARDUINO_MCPU}")
  73. #project(MYPROJECT)
  74. #
  75. #cmake_minimum_required(VERSION 2.6)
  76. #
  77. #include(${CMAKE_SOURCE_DIR}/scripts/arduino_uno.cmake)
  78. #
  79. #set(MYPROJECT_SOURCE_FILES
  80. #    ${CMAKE_SOURCE_DIR}/src/main.cpp
  81. #    ${ARDUINO_SOURCE_FILES}
  82. #)
  83. #
  84. #add_executable(firmware ${MYPROJECT_SOURCE_FILES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement