summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-03-25 20:29:31 -0400
committerGravatar Zach Hilman2019-06-10 00:03:11 -0400
commitc508a8d82af08db6cbc38af0611e2b461a39b3f2 (patch)
tree84a9a5bc17f59a05311a9d2d2dba4556dbd30067 /src
parentMerge pull request #2571 from lioncash/ref (diff)
downloadyuzu-c508a8d82af08db6cbc38af0611e2b461a39b3f2.tar.gz
yuzu-c508a8d82af08db6cbc38af0611e2b461a39b3f2.tar.xz
yuzu-c508a8d82af08db6cbc38af0611e2b461a39b3f2.zip
yuzu_tester: Add project subdirectory
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/yuzu_tester/CMakeLists.txt34
2 files changed, 35 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 04018233f..f18239edb 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -88,6 +88,7 @@ add_subdirectory(tests)
88 88
89if (ENABLE_SDL2) 89if (ENABLE_SDL2)
90 add_subdirectory(yuzu_cmd) 90 add_subdirectory(yuzu_cmd)
91 add_subdirectory(yuzu_tester)
91endif() 92endif()
92 93
93if (ENABLE_QT) 94if (ENABLE_QT)
diff --git a/src/yuzu_tester/CMakeLists.txt b/src/yuzu_tester/CMakeLists.txt
new file mode 100644
index 000000000..06c2ee011
--- /dev/null
+++ b/src/yuzu_tester/CMakeLists.txt
@@ -0,0 +1,34 @@
1set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
2
3add_executable(yuzu-tester
4 config.cpp
5 config.h
6 default_ini.h
7 emu_window/emu_window_sdl2_hide.cpp
8 emu_window/emu_window_sdl2_hide.h
9 resource.h
10 service/yuzutest.cpp
11 service/yuzutest.h
12 yuzu.cpp
13 yuzu.rc
14)
15
16create_target_directory_groups(yuzu-tester)
17
18target_link_libraries(yuzu-tester PRIVATE common core input_common)
19target_link_libraries(yuzu-tester PRIVATE inih glad)
20if (MSVC)
21 target_link_libraries(yuzu-tester PRIVATE getopt)
22endif()
23target_link_libraries(yuzu-tester PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads)
24
25if(UNIX AND NOT APPLE)
26 install(TARGETS yuzu-tester RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
27endif()
28
29if (MSVC)
30 include(CopyYuzuSDLDeps)
31 include(CopyYuzuUnicornDeps)
32 copy_yuzu_SDL_deps(yuzu-tester)
33 copy_yuzu_unicorn_deps(yuzu-tester)
34endif()