summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-03-18 15:51:11 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-03-18 15:51:11 +0200
commit2024b70397aeea0b1533399831df6ba994b6be8d (patch)
treedafe3371054eab671c8192a0dee3392702a929d7
parent2d658a3d17e512f4ea71dc144d38f3c5774a3792 (diff)
libkmstest: remove dependency to libdrm
-rw-r--r--libkms++/CMakeLists.txt1
-rw-r--r--libkmstest/CMakeLists.txt5
-rw-r--r--libkmstest/colorbar.cpp1
-rw-r--r--libkmstest/testpat.cpp6
4 files changed, 2 insertions, 11 deletions
diff --git a/libkms++/CMakeLists.txt b/libkms++/CMakeLists.txt
index c874778..4409b8b 100644
--- a/libkms++/CMakeLists.txt
+++ b/libkms++/CMakeLists.txt
@@ -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})
diff --git a/libkmstest/CMakeLists.txt b/libkmstest/CMakeLists.txt
index 55d31ae..e7980ee 100644
--- a/libkmstest/CMakeLists.txt
+++ b/libkmstest/CMakeLists.txt
@@ -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})
diff --git a/libkmstest/colorbar.cpp b/libkmstest/colorbar.cpp
index 9daf4d6..9fbec28 100644
--- a/libkmstest/colorbar.cpp
+++ b/libkmstest/colorbar.cpp
@@ -1,5 +1,4 @@
#include <cstdint>
-#include <drm_fourcc.h>
#include <kms++.h>
diff --git a/libkmstest/testpat.cpp b/libkmstest/testpat.cpp
index c0541bb..68f4385 100644
--- a/libkmstest/testpat.cpp
+++ b/libkmstest/testpat.cpp
@@ -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"