OSDN Git Service

move the test application to tests sub-directory
authorIvailo Monev <xakepa10@gmail.com>
Sat, 24 Dec 2022 16:28:39 +0000 (18:28 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 24 Dec 2022 16:28:39 +0000 (18:28 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
CMakeLists.txt
tests/CMakeLists.txt
tests/testapp/CMakeLists.txt [moved from tools/testapp/CMakeLists.txt with 80% similarity]
tests/testapp/main.cpp [moved from tools/testapp/main.cpp with 100% similarity]
tools/CMakeLists.txt [deleted file]

index e9fa894..180cbe5 100644 (file)
@@ -45,7 +45,6 @@ install(
 )
 
 add_subdirectory(src)
-add_subdirectory(tools)
 
 if (ENABLE_TESTING)
     enable_testing()
index a610fdf..7a9e90d 100644 (file)
@@ -1,3 +1,5 @@
+add_subdirectory(testapp)
+
 set(test_LIBRARIES
     ${QT_QTGUI_LIBRARY}
     ${QT_QTCORE_LIBRARY}
@@ -7,8 +9,8 @@ set(test_LIBRARIES
 )
 
 include_directories(
-    ${CMAKE_CURRENT_SOURCE_DIR}/../src
-    ${CMAKE_CURRENT_BINARY_DIR}/../src
+    ${CMAKE_SOURCE_DIR}/src
+    ${CMAKE_BINARY_DIR}/src
     ${CMAKE_CURRENT_BINARY_DIR}
     ${QT_QTTEST_INCLUDE_DIR}
     ${QT_QTDBUS_INCLUDE_DIR}
similarity index 80%
rename from tools/testapp/CMakeLists.txt
rename to tests/testapp/CMakeLists.txt
index e82cd53..e1325be 100644 (file)
@@ -5,8 +5,8 @@ set(qtapp_SRCS
 add_executable(dbusmenubench-qtapp ${qtapp_SRCS})
 
 include_directories(
-    ${CMAKE_CURRENT_SOURCE_DIR}/../../src
-    ${CMAKE_CURRENT_BINARY_DIR}/../../src
+    ${CMAKE_SOURCE_DIR}/src
+    ${CMAKE_BINARY_DIR}/src
     ${QT_INCLUDE_DIR}
     ${QT_QTCORE_INCLUDE_DIR}
     ${QT_QTGUI_INCLUDE_DIR}
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
deleted file mode 100644 (file)
index 842e7cc..0000000
+++ /dev/null
@@ -1 +0,0 @@
-add_subdirectory(testapp)