mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-21 01:43:10 +00:00
774d3112af
$ (cmake -DENABLE_SDL2:BOOL=false /path/to/citra; gmake) [...] [ 85%] Linking CXX executable tests ../common/libcommon.a(microprofile.cpp.o): In function `MicroProfileThreadStart(pthread**, void* (*)(void*))': src/common/microprofile.cpp:(.text+0x41): undefined reference to `pthread_create' c++: error: linker command failed with exit code 1 (use -v to see invocation)
18 lines
464 B
CMake
18 lines
464 B
CMake
set(SRCS
|
|
glad.cpp
|
|
tests.cpp
|
|
core/file_sys/path_parser.cpp
|
|
)
|
|
|
|
set(HEADERS
|
|
)
|
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
|
|
|
include_directories(../../externals/catch/single_include/)
|
|
|
|
add_executable(tests ${SRCS} ${HEADERS})
|
|
target_link_libraries(tests core video_core audio_core common)
|
|
target_link_libraries(tests ${PLATFORM_LIBRARIES} Threads::Threads)
|
|
|
|
add_test(NAME tests COMMAND $<TARGET_FILE:tests>)
|