您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CMakeLists.txt 1.1 KiB

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)