1 cmake_minimum_required(VERSION 2.8)
4 set(VCOS_PLATFORM win32)
6 set(VCOS_PLATFORM pthreads)
7 add_definitions(-Wall -Werror)
10 include_directories( ../../../..
11 ../../../../interface/vcos
12 ../../../../interface/vcos/${VCOS_PLATFORM} )
14 #add_subdirectory( ../../../../interface/vcos/${VCOS_PLATFORM} vcos)
15 #add_subdirectory( ../../bin/gencmd)
17 SET(CMAKE_EXE_LINKER_FLAGS "-pie")
18 add_executable(vcgencmd gencmd.c)
19 target_link_libraries(vcgencmd vcos vchiq_arm vchostif)
20 install(TARGETS vcgencmd RUNTIME DESTINATION bin)