Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2011
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.29 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_test)
  18.  
  19. # Use version 2.8
  20. cmake_minimum_required(VERSION 2.8)
  21.  
  22. # The common cmake script
  23. include(${CMAKE_SOURCE_DIR}/cmake/arduino-duemilanove.cmake)
  24.  
  25. # We only have one source file.
  26. set(SOURCE_FILES
  27.     ${CMAKE_SOURCE_DIR}/src/main.cpp
  28. )
  29.  
  30. # Include the libarduinocore include directory.
  31. include_directories (${ARDUINOCORE_INCLUDE_DIR})
  32. link_directories (${ARDUINOCORE_LIB_DIR})
  33.  
  34. # Build the executable file.
  35. add_executable (${PROJECT_NAME} ${SOURCE_FILES})
  36.  
  37. # Link to libarduino-core.
  38. target_link_libraries (${PROJECT_NAME} arduino-core)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement