forked from Qortal/Brooklyn
21 lines
603 B
CMake
21 lines
603 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
if (WIN32)
|
|
set(VCOS_PLATFORM win32)
|
|
else ()
|
|
set(VCOS_PLATFORM pthreads)
|
|
add_definitions(-Wall -Werror)
|
|
endif ()
|
|
|
|
include_directories( ../../../..
|
|
../../../../interface/vcos
|
|
../../../../interface/vcos/${VCOS_PLATFORM} )
|
|
|
|
#add_subdirectory( ../../../../interface/vcos/${VCOS_PLATFORM} vcos)
|
|
#add_subdirectory( ../../bin/gencmd)
|
|
|
|
add_executable(vcgencmd gencmd.c)
|
|
target_link_libraries(vcgencmd vcos vchiq_arm vchostif)
|
|
install(TARGETS vcgencmd RUNTIME DESTINATION bin)
|
|
install(FILES vcgencmd.1 DESTINATION man/man1)
|