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_test)
- # Use version 2.8
- cmake_minimum_required(VERSION 2.8)
- # The common cmake script
- include(${CMAKE_SOURCE_DIR}/cmake/arduino-duemilanove.cmake)
- # We only have one source file.
- set(SOURCE_FILES
- ${CMAKE_SOURCE_DIR}/src/main.cpp
- )
- # Include the libarduinocore include directory.
- include_directories (${ARDUINOCORE_INCLUDE_DIR})
- link_directories (${ARDUINOCORE_LIB_DIR})
- # Build the executable file.
- add_executable (${PROJECT_NAME} ${SOURCE_FILES})
- # Link to libarduino-core.
- target_link_libraries (${PROJECT_NAME} arduino-core)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement