diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/audio_core/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/citra/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | src/citra_qt/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/core/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | src/input_common/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | src/tests/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | src/video_core/CMakeLists.txt | 7 |
8 files changed, 12 insertions, 24 deletions
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt index c571213fc..0ad86bb7a 100644 --- a/src/audio_core/CMakeLists.txt +++ b/src/audio_core/CMakeLists.txt | |||
| @@ -27,12 +27,9 @@ set(HEADERS | |||
| 27 | time_stretch.h | 27 | time_stretch.h |
| 28 | ) | 28 | ) |
| 29 | 29 | ||
| 30 | include_directories(../../externals/soundtouch/include) | ||
| 31 | |||
| 32 | if(SDL2_FOUND) | 30 | if(SDL2_FOUND) |
| 33 | set(SRCS ${SRCS} sdl2_sink.cpp) | 31 | set(SRCS ${SRCS} sdl2_sink.cpp) |
| 34 | set(HEADERS ${HEADERS} sdl2_sink.h) | 32 | set(HEADERS ${HEADERS} sdl2_sink.h) |
| 35 | include_directories(${SDL2_INCLUDE_DIR}) | ||
| 36 | endif() | 33 | endif() |
| 37 | 34 | ||
| 38 | create_directory_groups(${SRCS} ${HEADERS}) | 35 | create_directory_groups(${SRCS} ${HEADERS}) |
| @@ -42,6 +39,6 @@ target_link_libraries(audio_core PUBLIC common core) | |||
| 42 | target_link_libraries(audio_core PRIVATE SoundTouch) | 39 | target_link_libraries(audio_core PRIVATE SoundTouch) |
| 43 | 40 | ||
| 44 | if(SDL2_FOUND) | 41 | if(SDL2_FOUND) |
| 45 | target_link_libraries(audio_core PRIVATE ${SDL2_LIBRARY}) | 42 | target_link_libraries(audio_core PRIVATE SDL2) |
| 46 | target_compile_definitions(audio_core PRIVATE HAVE_SDL2) | 43 | target_compile_definitions(audio_core PRIVATE HAVE_SDL2) |
| 47 | endif() | 44 | endif() |
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt index 9eddb342b..d72d2b5f4 100644 --- a/src/citra/CMakeLists.txt +++ b/src/citra/CMakeLists.txt | |||
| @@ -15,15 +15,13 @@ set(HEADERS | |||
| 15 | 15 | ||
| 16 | create_directory_groups(${SRCS} ${HEADERS}) | 16 | create_directory_groups(${SRCS} ${HEADERS}) |
| 17 | 17 | ||
| 18 | include_directories(${SDL2_INCLUDE_DIR}) | ||
| 19 | |||
| 20 | add_executable(citra ${SRCS} ${HEADERS}) | 18 | add_executable(citra ${SRCS} ${HEADERS}) |
| 21 | target_link_libraries(citra PRIVATE common core input_common) | 19 | target_link_libraries(citra PRIVATE common core input_common) |
| 22 | target_link_libraries(citra PRIVATE ${SDL2_LIBRARY} ${OPENGL_gl_LIBRARY} inih glad) | 20 | target_link_libraries(citra PRIVATE inih glad) |
| 23 | if (MSVC) | 21 | if (MSVC) |
| 24 | target_link_libraries(citra PRIVATE getopt) | 22 | target_link_libraries(citra PRIVATE getopt) |
| 25 | endif() | 23 | endif() |
| 26 | target_link_libraries(citra PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) | 24 | target_link_libraries(citra PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads) |
| 27 | 25 | ||
| 28 | if(UNIX AND NOT APPLE) | 26 | if(UNIX AND NOT APPLE) |
| 29 | install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") | 27 | install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") |
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt index 809e0b938..4841cbf05 100644 --- a/src/citra_qt/CMakeLists.txt +++ b/src/citra_qt/CMakeLists.txt | |||
| @@ -92,7 +92,7 @@ else() | |||
| 92 | add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS}) | 92 | add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS}) |
| 93 | endif() | 93 | endif() |
| 94 | target_link_libraries(citra-qt PRIVATE audio_core common core input_common video_core) | 94 | target_link_libraries(citra-qt PRIVATE audio_core common core input_common video_core) |
| 95 | target_link_libraries(citra-qt PRIVATE ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS} glad) | 95 | target_link_libraries(citra-qt PRIVATE Boost::boost glad nihstro-headers Qt5::OpenGL Qt5::Widgets) |
| 96 | target_link_libraries(citra-qt PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) | 96 | target_link_libraries(citra-qt PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) |
| 97 | 97 | ||
| 98 | if(UNIX AND NOT APPLE) | 98 | if(UNIX AND NOT APPLE) |
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index a33a8cdbe..7e83e64b0 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -95,6 +95,7 @@ endif() | |||
| 95 | create_directory_groups(${SRCS} ${HEADERS}) | 95 | create_directory_groups(${SRCS} ${HEADERS}) |
| 96 | 96 | ||
| 97 | add_library(common STATIC ${SRCS} ${HEADERS}) | 97 | add_library(common STATIC ${SRCS} ${HEADERS}) |
| 98 | target_link_libraries(common PUBLIC Boost::boost microprofile) | ||
| 98 | if (ARCHITECTURE_x86_64) | 99 | if (ARCHITECTURE_x86_64) |
| 99 | target_link_libraries(common PRIVATE xbyak) | 100 | target_link_libraries(common PRIVATE xbyak) |
| 100 | endif() | 101 | endif() |
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 7aa81e885..3cdb2b817 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -374,11 +374,7 @@ set(HEADERS | |||
| 374 | telemetry_session.h | 374 | telemetry_session.h |
| 375 | ) | 375 | ) |
| 376 | 376 | ||
| 377 | include_directories(../../externals/dynarmic/include) | ||
| 378 | include_directories(../../externals/cryptopp) | ||
| 379 | |||
| 380 | create_directory_groups(${SRCS} ${HEADERS}) | 377 | create_directory_groups(${SRCS} ${HEADERS}) |
| 381 | |||
| 382 | add_library(core STATIC ${SRCS} ${HEADERS}) | 378 | add_library(core STATIC ${SRCS} ${HEADERS}) |
| 383 | target_link_libraries(core PUBLIC common PRIVATE audio_core video_core) | 379 | target_link_libraries(core PUBLIC common PRIVATE audio_core video_core) |
| 384 | target_link_libraries(core PRIVATE cryptopp dynarmic) | 380 | target_link_libraries(core PUBLIC Boost::boost PRIVATE cryptopp dynarmic) |
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index 5b306e42e..e3e36ada7 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -13,7 +13,6 @@ set(HEADERS | |||
| 13 | if(SDL2_FOUND) | 13 | if(SDL2_FOUND) |
| 14 | set(SRCS ${SRCS} sdl/sdl.cpp) | 14 | set(SRCS ${SRCS} sdl/sdl.cpp) |
| 15 | set(HEADERS ${HEADERS} sdl/sdl.h) | 15 | set(HEADERS ${HEADERS} sdl/sdl.h) |
| 16 | include_directories(${SDL2_INCLUDE_DIR}) | ||
| 17 | endif() | 16 | endif() |
| 18 | 17 | ||
| 19 | create_directory_groups(${SRCS} ${HEADERS}) | 18 | create_directory_groups(${SRCS} ${HEADERS}) |
| @@ -22,6 +21,6 @@ add_library(input_common STATIC ${SRCS} ${HEADERS}) | |||
| 22 | target_link_libraries(input_common PUBLIC core PRIVATE common) | 21 | target_link_libraries(input_common PUBLIC core PRIVATE common) |
| 23 | 22 | ||
| 24 | if(SDL2_FOUND) | 23 | if(SDL2_FOUND) |
| 25 | target_link_libraries(input_common PRIVATE ${SDL2_LIBRARY}) | 24 | target_link_libraries(input_common PRIVATE SDL2) |
| 26 | target_compile_definitions(input_common PRIVATE HAVE_SDL2) | 25 | target_compile_definitions(input_common PRIVATE HAVE_SDL2) |
| 27 | endif() | 26 | endif() |
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 85f2f2985..00d7c636a 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt | |||
| @@ -10,11 +10,9 @@ set(HEADERS | |||
| 10 | 10 | ||
| 11 | create_directory_groups(${SRCS} ${HEADERS}) | 11 | create_directory_groups(${SRCS} ${HEADERS}) |
| 12 | 12 | ||
| 13 | include_directories(../../externals/catch/single_include/) | ||
| 14 | |||
| 15 | add_executable(tests ${SRCS} ${HEADERS}) | 13 | add_executable(tests ${SRCS} ${HEADERS}) |
| 16 | target_link_libraries(tests PRIVATE common core) | 14 | target_link_libraries(tests PRIVATE common core) |
| 17 | target_link_libraries(tests PRIVATE glad) # To support linker work-around | 15 | target_link_libraries(tests PRIVATE glad) # To support linker work-around |
| 18 | target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) | 16 | target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} catch-single-include Threads::Threads) |
| 19 | 17 | ||
| 20 | add_test(NAME tests COMMAND $<TARGET_FILE:tests>) | 18 | add_test(NAME tests COMMAND tests) |
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index e455f03bd..0961a3251 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt | |||
| @@ -80,14 +80,13 @@ create_directory_groups(${SRCS} ${HEADERS}) | |||
| 80 | 80 | ||
| 81 | add_library(video_core STATIC ${SRCS} ${HEADERS}) | 81 | add_library(video_core STATIC ${SRCS} ${HEADERS}) |
| 82 | target_link_libraries(video_core PUBLIC common core) | 82 | target_link_libraries(video_core PUBLIC common core) |
| 83 | target_link_libraries(video_core PRIVATE glad) | 83 | target_link_libraries(video_core PRIVATE glad nihstro-headers) |
| 84 | 84 | ||
| 85 | if (ARCHITECTURE_x86_64) | 85 | if (ARCHITECTURE_x86_64) |
| 86 | target_link_libraries(video_core PRIVATE xbyak) | 86 | target_link_libraries(video_core PRIVATE xbyak) |
| 87 | endif() | 87 | endif() |
| 88 | 88 | ||
| 89 | if (PNG_FOUND) | 89 | if (PNG_FOUND) |
| 90 | target_link_libraries(video_core PRIVATE ${PNG_LIBRARIES}) | 90 | target_link_libraries(video_core PRIVATE PNG::PNG) |
| 91 | target_include_directories(video_core PRIVATE ${PNG_INCLUDE_DIRS}) | 91 | target_compile_definitions(video_core PRIVATE HAVE_PNG) |
| 92 | target_compile_definitions(video_core PRIVATE ${PNG_DEFINITIONS}) | ||
| 93 | endif() | 92 | endif() |