[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [gluon] /: Add Graphics, Engine, Player,
From: Laszlo Papp <djszapi () archlinux ! us>
Date: 2011-08-01 23:19:47
Message-ID: 20110801231947.C100AA60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 548667a43822cf9a97566d0c523eeadb786bed46 by Laszlo Papp.
Committed on 02/08/2011 at 02:26.
Pushed by lpapp into branch 'master'.
Add Graphics, Engine, Player, Creator tests folders and cmake files
M +6 -0 engine/CMakeLists.txt
M +6 -1 input/tests/CMakeLists.txt
M +6 -0 creator/lib/CMakeLists.txt
A +18 -0 player/lib/tests/CMakeLists.txt
M +5 -1 audio/tests/CMakeLists.txt
M +6 -0 player/lib/CMakeLists.txt
A +19 -0 creator/lib/tests/CMakeLists.txt
A +19 -0 engine/tests/CMakeLists.txt
A +19 -0 graphics/tests/CMakeLists.txt
M +6 -0 graphics/CMakeLists.txt
http://commits.kde.org/gluon/548667a43822cf9a97566d0c523eeadb786bed46
diff --git a/audio/tests/CMakeLists.txt b/audio/tests/CMakeLists.txt
index d56c9ee..c26b024 100644
--- a/audio/tests/CMakeLists.txt
+++ b/audio/tests/CMakeLists.txt
@@ -3,7 +3,11 @@ cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
include(GluonMacros)
-include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${GLUON_AUDIO_INCLUDES})
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GLUON_AUDIO_INCLUDES}
+)
########### next target ###############
diff --git a/creator/lib/CMakeLists.txt b/creator/lib/CMakeLists.txt
index d2a1e6a..7a692f7 100644
--- a/creator/lib/CMakeLists.txt
+++ b/creator/lib/CMakeLists.txt
@@ -109,3 +109,9 @@ install(FILES
DESTINATION ${SERVICETYPES_INSTALL_DIR}
COMPONENT gluoncreator
)
+
+if(BUILD_GLUON_TESTS)
+ enable_testing()
+ add_subdirectory(tests)
+endif()
+
diff --git a/creator/lib/tests/CMakeLists.txt b/creator/lib/tests/CMakeLists.txt
new file mode 100644
index 0000000..40cf9c7
--- /dev/null
+++ b/creator/lib/tests/CMakeLists.txt
@@ -0,0 +1,19 @@
+cmake_minimum_required(VERSION 2.8)
+
+set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
+include(GluonMacros)
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GLUON_CREATOR_INCLUDES}
+)
+
+########### next target ###############
+
+GLUON_UNIT_TESTS(
+ "${GLUON_CREATOR_LIBS}" # libraries arguement
+ "gluoncreator" # modulename argument
+
+ # Source files without the extension
+)
diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt
index c957702..a1689ad 100644
--- a/engine/CMakeLists.txt
+++ b/engine/CMakeLists.txt
@@ -145,3 +145,9 @@ install(
DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/engine
COMPONENT gluonengine
)
+
+if(BUILD_GLUON_TESTS)
+ enable_testing()
+ add_subdirectory(tests)
+endif()
+
diff --git a/engine/tests/CMakeLists.txt b/engine/tests/CMakeLists.txt
new file mode 100644
index 0000000..5885596
--- /dev/null
+++ b/engine/tests/CMakeLists.txt
@@ -0,0 +1,19 @@
+cmake_minimum_required(VERSION 2.8)
+
+set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
+include(GluonMacros)
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GLUON_ENGINE_INCLUDES}
+)
+
+########### next target ###############
+
+GLUON_UNIT_TESTS(
+ "${GLUON_ENGINE_LIBS}" # libraries arguement
+ "gluonengine" # modulename argument
+
+ # Source files without the extension
+)
diff --git a/graphics/CMakeLists.txt b/graphics/CMakeLists.txt
index 00a359b..dfc03ab 100644
--- a/graphics/CMakeLists.txt
+++ b/graphics/CMakeLists.txt
@@ -158,3 +158,9 @@ install(
default.png
DESTINATION ${SHARE_INSTALL_DIR}/gluon/defaults
)
+
+if(BUILD_GLUON_TESTS)
+ enable_testing()
+ add_subdirectory(tests)
+endif()
+
diff --git a/graphics/tests/CMakeLists.txt b/graphics/tests/CMakeLists.txt
new file mode 100644
index 0000000..8a38a16
--- /dev/null
+++ b/graphics/tests/CMakeLists.txt
@@ -0,0 +1,19 @@
+cmake_minimum_required(VERSION 2.8)
+
+set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
+include(GluonMacros)
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GLUON_GRAPHICS_INCLUDES}
+)
+
+########### next target ###############
+
+GLUON_UNIT_TESTS(
+ "${GLUON_GRAPHICS_LIBS}" # libraries arguement
+ "gluongraphics" # modulename argument
+
+ # Source files without the extension
+)
diff --git a/input/tests/CMakeLists.txt b/input/tests/CMakeLists.txt
index 101ab49..b5f1ad5 100644
--- a/input/tests/CMakeLists.txt
+++ b/input/tests/CMakeLists.txt
@@ -3,13 +3,18 @@ cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
include(GluonMacros)
-include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${GLUON_INPUT_INCLUDES})
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GLUON_INPUT_INCLUDES}
+)
########### next target ###############
GLUON_UNIT_TESTS(
"${GLUON_INPUT_LIBS}" # libraries arguement
"gluoninput" # modulename argument
+
# Source files without the extension
inputbuffertest
inputdevicetest
diff --git a/player/lib/CMakeLists.txt b/player/lib/CMakeLists.txt
index ea84bdc..a6d2e8b 100644
--- a/player/lib/CMakeLists.txt
+++ b/player/lib/CMakeLists.txt
@@ -81,3 +81,9 @@ install(FILES
DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib/models
COMPONENT gluonplayer
)
+
+if(BUILD_GLUON_TESTS)
+ enable_testing()
+ add_subdirectory(tests)
+endif()
+
diff --git a/player/lib/tests/CMakeLists.txt b/player/lib/tests/CMakeLists.txt
new file mode 100644
index 0000000..46c3885
--- /dev/null
+++ b/player/lib/tests/CMakeLists.txt
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 2.8)
+
+set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
+include(GluonMacros)
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GLUON_PLAYER_INCLUDES})
+
+########### next target ###############
+
+GLUON_UNIT_TESTS(
+ "${GLUON_PLAYER_LIBS}" # libraries arguement
+ "gluonplayer" # modulename argument
+
+ # Source files without the extension
+)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic