link against gtest-main
Don't bother with custom main function. No benefit. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
b456628557
commit
e1ac00a71f
@ -6,7 +6,6 @@ if( EXV_ENABLE_VIDEO )
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(unit_tests
|
add_executable(unit_tests
|
||||||
mainTestRunner.cpp
|
|
||||||
test_basicio.cpp
|
test_basicio.cpp
|
||||||
test_bmpimage.cpp
|
test_bmpimage.cpp
|
||||||
test_cr2header_int.cpp
|
test_cr2header_int.cpp
|
||||||
@ -45,7 +44,6 @@ target_compile_definitions(unit_tests
|
|||||||
target_link_libraries(unit_tests
|
target_link_libraries(unit_tests
|
||||||
PRIVATE
|
PRIVATE
|
||||||
exiv2lib
|
exiv2lib
|
||||||
GTest::gtest
|
|
||||||
GTest::gtest_main
|
GTest::gtest_main
|
||||||
std::filesystem
|
std::filesystem
|
||||||
)
|
)
|
||||||
|
|||||||
@ -1,14 +0,0 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
|
||||||
::testing::InitGoogleTest(&argc, argv);
|
|
||||||
|
|
||||||
int ret = RUN_ALL_TESTS();
|
|
||||||
|
|
||||||
std::cout << "Tests finished with return value: " << ret << std::endl;
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user