add_definitions(-Wall -Werror)
endif ()
-include_directories( ../../../..
+include_directories( ../../../..
../../../../interface/vcos
../../../../interface/vcos/${VCOS_PLATFORM} )
#add_subdirectory( ../../../../interface/vcos/${VCOS_PLATFORM} vcos)
#add_subdirectory( ../../bin/gencmd)
+SET(CMAKE_EXE_LINKER_FLAGS "-pie")
add_executable(vcgencmd gencmd.c)
target_link_libraries(vcgencmd vcos vchiq_arm vchostif)
install(TARGETS vcgencmd RUNTIME DESTINATION bin)