CMake: Use existing main for unit tests
This commit is contained in:
@@ -193,13 +193,18 @@ if(BUILD_RPCS3_TESTS)
|
|||||||
|
|
||||||
message(STATUS "Building unit tests...")
|
message(STATUS "Building unit tests...")
|
||||||
|
|
||||||
add_executable(rpcs3_test
|
add_executable(rpcs3_test)
|
||||||
tests/test_fmt.cpp
|
|
||||||
|
target_sources(rpcs3_test
|
||||||
|
PRIVATE
|
||||||
|
tests/test.cpp
|
||||||
|
tests/test_fmt.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(rpcs3_test
|
target_link_libraries(rpcs3_test
|
||||||
rpcs3_lib
|
PRIVATE
|
||||||
GTest::gtest_main
|
rpcs3_lib
|
||||||
|
GTest::gtest
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(rpcs3_test
|
target_include_directories(rpcs3_test
|
||||||
|
|||||||
Reference in New Issue
Block a user