f95d1a1b7cece302d00adf84c05b27fc7fe66ed0
[platform/adaptation/broadcom/libomxil-vc4.git] / host_applications / linux / apps / gencmd / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8)
2
3 if (WIN32)
4    set(VCOS_PLATFORM win32)
5 else ()
6    set(VCOS_PLATFORM pthreads)
7    add_definitions(-Wall -Werror)
8 endif ()
9
10 include_directories( ../../../.. 
11                      ../../../../interface/vcos
12                      ../../../../interface/vcos/${VCOS_PLATFORM} )
13
14 #add_subdirectory( ../../../../interface/vcos/${VCOS_PLATFORM} vcos)
15 #add_subdirectory( ../../bin/gencmd)
16
17 add_executable(vcgencmd gencmd.c)
18 target_link_libraries(vcgencmd vcos vchiq_arm vchostif)
19 install(TARGETS vcgencmd RUNTIME DESTINATION bin)
20