libkmstest: remove dependency to libdrm
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 18 Mar 2016 13:51:11 +0000 (15:51 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 18 Mar 2016 13:51:11 +0000 (15:51 +0200)
libkms++/CMakeLists.txt
libkmstest/CMakeLists.txt
libkmstest/colorbar.cpp
libkmstest/testpat.cpp

index c8747784c2065f687a5d92ca855c0f18d7bca7c5..4409b8b0bfec4bcf4697e54814a864384c7ffde0 100644 (file)
@@ -4,4 +4,5 @@ link_directories(${LIBDRM_LIBRARY_DIRS})
 file(GLOB SRCS "*.cpp" "*.h")
 add_library(kms++ ${SRCS})
 
+target_link_libraries(kms++ ${LIBDRM_LIBRARIES})
 target_include_directories(kms++ PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
index 55d31ae82b7d8d7758e9c16e900a223d78aacb38..e7980ee74dbf4d09b02af8a0f02e88d0fd2d9ea2 100644 (file)
@@ -1,8 +1,5 @@
-include_directories(${LIBDRM_INCLUDE_DIRS})
-link_directories(${LIBDRM_LIBRARY_DIRS})
-
 file(GLOB SRCS "*.cpp" "*.h")
 add_library(kmstest ${SRCS})
 
-target_link_libraries(kmstest kms++ ${LIBDRM_LIBRARIES})
+target_link_libraries(kmstest kms++)
 target_include_directories(kmstest PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
index 9daf4d6e43e7d2cf9327e980b28b3970ec5510a9..9fbec28d98660bcd4ea640cc83f2b00a663ebae7 100644 (file)
@@ -1,5 +1,4 @@
 #include <cstdint>
-#include <drm_fourcc.h>
 
 #include <kms++.h>
 
index c0541bba3839d063cdce7b376b2f9aed05b763ce..68f438540d563e754d9a4dcc594c8aa8e398006e 100644 (file)
@@ -5,12 +5,6 @@
 #include <cstring>
 #include <cassert>
 
-#include <xf86drm.h>
-#include <xf86drmMode.h>
-#include <drm_fourcc.h>
-#include <drm.h>
-#include <drm_mode.h>
-
 #include "kms++.h"
 #include "test.h"
 #include "cpuframebuffer.h"