summaryrefslogtreecommitdiff
path: root/utils/CMakeLists.txt
blob: d28527a88e513ad489ca242f390b77c75d833a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
include_directories(${LIBDRM_INCLUDE_DIRS})
link_directories(${LIBDRM_LIBRARY_DIRS})

include_directories(${LIBEVDEV_INCLUDE_DIRS})
link_directories(${LIBEVDEV_LIBRARY_DIRS})

add_executable (kmstest kmstest.cpp)
target_link_libraries(kmstest kms++ kms++util ${LIBDRM_LIBRARIES})

add_executable (kmsview kmsview.cpp)
target_link_libraries(kmsview kms++ kms++util ${LIBDRM_LIBRARIES})

add_executable (kmsprint kmsprint.cpp)
target_link_libraries(kmsprint kms++ kms++util ${LIBDRM_LIBRARIES})

add_executable (fbtest fbtest.cpp)
target_link_libraries(fbtest kms++util)

add_executable (kmscapture kmscapture.cpp)
target_link_libraries(kmscapture kms++ kms++util ${LIBDRM_LIBRARIES})

add_executable (kmsblank kmsblank.cpp)
target_link_libraries(kmsblank kms++ kms++util ${LIBDRM_LIBRARIES})

if(LIBEVDEV_FOUND)
    add_executable (kmstouch kmstouch.cpp)
    target_link_libraries(kmstouch kms++ kms++util ${LIBDRM_LIBRARIES} ${LIBEVDEV_LIBRARIES})
endif()

add_executable (omap-wbcap omap-wbcap.cpp)
target_link_libraries(omap-wbcap kms++ kms++util ${LIBDRM_LIBRARIES})

add_executable (omap-wbm2m omap-wbm2m.cpp)
target_link_libraries(omap-wbm2m kms++ kms++util ${LIBDRM_LIBRARIES})

install(TARGETS kmstest kmsprint fbtest
    DESTINATION bin)