Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

CMakeLists.txt 1.1 KiB

vor 3 Jahren
123456789101112131415161718192021222324252627
  1. #
  2. # Copyright (c)2021- Alligator Descartes <http://www.hermitretro.com>
  3. #
  4. # This file is part of WiringPi
  5. #
  6. # WiringPi is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # WiringPi is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with WiringPi. If not, see <https://www.gnu.org/licenses/>.
  18. include_directories(${PROJECT_SOURCE_DIR}/wiringPi)
  19. add_compile_options(-D_FILE_OFFSET_BITS=64 -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast)
  20. file(GLOB_RECURSE SOURCES "*.c")
  21. link_directories(${PROJECT_SOURCE_DIR}/wiringPi ${PROJECT_SOURCE_DIR}/devLib)
  22. add_executable(gpio ${SOURCES})
  23. target_link_libraries(gpio wiringPi devLib m rt pthread crypt)