mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 13:01:27 +12:00
CMake: Use existing main for unit tests
This commit is contained in:
parent
e4cc55dc19
commit
b6a3754ee5
1 changed files with 9 additions and 4 deletions
|
@ -193,13 +193,18 @@ if(BUILD_RPCS3_TESTS)
|
|||
|
||||
message(STATUS "Building unit tests...")
|
||||
|
||||
add_executable(rpcs3_test
|
||||
tests/test_fmt.cpp
|
||||
add_executable(rpcs3_test)
|
||||
|
||||
target_sources(rpcs3_test
|
||||
PRIVATE
|
||||
tests/test.cpp
|
||||
tests/test_fmt.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(rpcs3_test
|
||||
rpcs3_lib
|
||||
GTest::gtest_main
|
||||
PRIVATE
|
||||
rpcs3_lib
|
||||
GTest::gtest
|
||||
)
|
||||
|
||||
target_include_directories(rpcs3_test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue