summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@iki.fi>2015-09-28 21:59:29 +0300
committerTomi Valkeinen <tomi.valkeinen@iki.fi>2015-09-28 22:00:14 +0300
commit894a73b74b92c7eca07a954443750df23845a579 (patch)
tree6d41d26827f6fd036963be0f1d851d9d3d02ac24
parent912572f455dc10a88fd0aeca22cd97acc7a64b9b (diff)
move db and testpat to tests/
-rw-r--r--CMakeLists.txt3
-rw-r--r--db/CMakeLists.txt6
-rw-r--r--tests/CMakeLists.txt (renamed from testpat/CMakeLists.txt)5
-rw-r--r--tests/db.cpp (renamed from db/db.cpp)0
-rw-r--r--tests/testpat.cpp (renamed from testpat/testpat.cpp)0
5 files changed, 5 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 060dd7b..1fe580e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,8 +18,7 @@ pkg_check_modules(LIBDRM libdrm REQUIRED)
enable_testing()
add_subdirectory(libkms++)
-add_subdirectory(testpat)
-add_subdirectory(db)
+add_subdirectory(tests)
add_subdirectory(py)
add_subdirectory(lua)
diff --git a/db/CMakeLists.txt b/db/CMakeLists.txt
deleted file mode 100644
index 91ab888..0000000
--- a/db/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-include_directories(${LIBDRM_INCLUDE_DIRS})
-link_directories(${LIBDRM_LIBRARY_DIRS})
-
-add_executable (db db.cpp)
-
-target_link_libraries(db kms++ ${LIBDRM_LIBRARIES})
diff --git a/testpat/CMakeLists.txt b/tests/CMakeLists.txt
index aed4371..7856034 100644
--- a/testpat/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,6 +1,9 @@
include_directories(${LIBDRM_INCLUDE_DIRS})
link_directories(${LIBDRM_LIBRARY_DIRS})
-add_executable (testpat testpat.cpp)
+add_executable (db db.cpp)
+target_link_libraries(db kms++ ${LIBDRM_LIBRARIES})
+add_executable (testpat testpat.cpp)
target_link_libraries(testpat kms++ ${LIBDRM_LIBRARIES})
+
diff --git a/db/db.cpp b/tests/db.cpp
index 4ef6ff9..4ef6ff9 100644
--- a/db/db.cpp
+++ b/tests/db.cpp
diff --git a/testpat/testpat.cpp b/tests/testpat.cpp
index 5632224..5632224 100644
--- a/testpat/testpat.cpp
+++ b/tests/testpat.cpp