vcgencmd: Apply ASLR
[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 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)
21