Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. cmake_minimum_required (VERSION 2.8)
  2. get_filename_component (VIDEOCORE_ROOT "../.." ABSOLUTE)
  3. include (${VIDEOCORE_ROOT}/makefiles/cmake/global_settings.cmake)
  4. set (HEADERS
  5. vcos_assert.h
  6. vcos_atomic_flags.h
  7. vcos_blockpool.h
  8. vcos_cmd.h
  9. vcos_dlfcn.h
  10. vcos_event_flags.h
  11. vcos_event.h
  12. vcos.h
  13. vcos_init.h
  14. vcos_inttypes.h
  15. vcos_isr.h
  16. vcos_legacy_isr.h
  17. vcos_logging.h
  18. vcos_logging_control.h
  19. vcos_lowlevel_thread.h
  20. vcos_mem.h
  21. vcos_mempool.h
  22. vcos_msgqueue.h
  23. vcos_mutex.h
  24. vcos_named_semaphore.h
  25. vcos_once.h
  26. vcos_queue.h
  27. vcos_quickslow_mutex.h
  28. vcos_reentrant_mutex.h
  29. vcos_semaphore.h
  30. vcos_stdint.h
  31. vcos_string.h
  32. vcos_thread_attr.h
  33. vcos_thread.h
  34. vcos_timer.h
  35. vcos_tls.h
  36. vcos_types.h
  37. )
  38. foreach (header ${HEADERS})
  39. configure_file ("${header}" "${VCOS_HEADERS_BUILD_DIR}/${header}" COPYONLY)
  40. endforeach ()
  41. if (CMAKE_COMPILER_IS_GNUCC)
  42. add_definitions (-ggdb -Werror -Wall)
  43. endif ()
  44. if (CMAKE_COMPILER_2005)
  45. add_definitions (/WX /W4 /wd4127 /D_CRT_SECURE_NO_DEPRECATE)
  46. endif ()
  47. include_directories (${VIDEOCORE_ROOT} ${VCOS_HEADERS_BUILD_DIR})
  48. add_subdirectory (${RTOS})
  49. set(VCOS_EXCLUDE_TESTS TRUE)
  50. if (NOT DEFINED VCOS_EXCLUDE_TESTS)
  51. add_testapp_subdirectory (test)
  52. endif (NOT DEFINED VCOS_EXCLUDE_TESTS)
  53. if (WIN32)
  54. build_command (RELEASE_BUILD_CMD CONFIGURATION Release)
  55. build_command (DEBUG_BUILD_CMD CONFIGURATION Debug)
  56. configure_file (build_all.bat.in build_all.bat @ONLY)
  57. endif ()
  58. #install (FILES ${HEADERS} DESTINATION include/interface/vcos)