25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
1.1 KiB

  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)