mirror of
https://github.com/encounter/linuxdeploy-plugin-qt.git
synced 2026-07-10 12:18:45 -07:00
Add GTest
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
[submodule "lib/linuxdeploy"]
|
||||
path = lib/linuxdeploy
|
||||
url = https://github.com/TheAssassin/linuxdeploy
|
||||
[submodule "lib/googletest"]
|
||||
path = lib/googletest
|
||||
url = https://github.com/google/googletest.git
|
||||
|
||||
@@ -6,3 +6,4 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(test)
|
||||
@@ -1 +1,2 @@
|
||||
add_subdirectory(linuxdeploy EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(googletest EXCLUDE_FROM_ALL)
|
||||
|
||||
Submodule
+1
Submodule lib/googletest added at 077ee54cef
@@ -0,0 +1,6 @@
|
||||
enable_testing()
|
||||
|
||||
add_executable(linuxdeploy-plugin-qt-tests test_deploy_qml.cpp test_main.cpp)
|
||||
target_link_libraries(linuxdeploy-plugin-qt-tests gtest)
|
||||
|
||||
add_test(linuxdeploy-plugin-qt-tests linuxdeploy-plugin-qt-tests)
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
Reference in New Issue
Block a user