diff options
author | Zephyron <zephyron@citron-emu.org> | 2024-12-31 17:07:49 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2024-12-31 17:07:49 +1000 |
commit | b3facaa6bb30cdc39f2b7d632fef1e3bfeee7785 (patch) | |
tree | 77d03cd30542cd5e1addc61f240b8120a5909e90 /src/citron_cmd/CMakeLists.txt | |
parent | 6778aa8ec8e5fa0d246ac4b9ec00c10213c30ce5 (diff) |
chore: update project references and add Citron copyright
- Replaced all references to the old project name with Citron.
- Added Citron copyright information alongside existing notices in all files.
Diffstat (limited to 'src/citron_cmd/CMakeLists.txt')
-rw-r--r-- | src/citron_cmd/CMakeLists.txt | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/citron_cmd/CMakeLists.txt b/src/citron_cmd/CMakeLists.txt index ebd8fd738..d841a5494 100644 --- a/src/citron_cmd/CMakeLists.txt +++ b/src/citron_cmd/CMakeLists.txt @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2018 yuzu Emulator Project +# SPDX-FileCopyrightText: 2018 yuzu Emulator Project & 2025 citron Homebrew Project # SPDX-License-Identifier: GPL-2.0-or-later # Credits to Samantas5855 and others for this function. @@ -12,7 +12,7 @@ function(create_resource file output filename) file(WRITE "${PROJECT_BINARY_DIR}/dist/${output}" "const unsigned char ${filename}[] = {${filedata}};\nconst unsigned ${filename}_size = sizeof(${filename});\n") endfunction() -add_executable(yuzu-cmd +add_executable(citron-cmd emu_window/emu_window_sdl2.cpp emu_window/emu_window_sdl2.h emu_window/emu_window_sdl2_gl.cpp @@ -24,42 +24,42 @@ add_executable(yuzu-cmd precompiled_headers.h sdl_config.cpp sdl_config.h - yuzu.cpp - yuzu.rc + citron.cpp + citron.rc ) -target_link_libraries(yuzu-cmd PRIVATE common core input_common frontend_common) -target_link_libraries(yuzu-cmd PRIVATE glad) +target_link_libraries(citron-cmd PRIVATE common core input_common frontend_common) +target_link_libraries(citron-cmd PRIVATE glad) if (MSVC) - target_link_libraries(yuzu-cmd PRIVATE getopt) + target_link_libraries(citron-cmd PRIVATE getopt) endif() -target_link_libraries(yuzu-cmd PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) +target_link_libraries(citron-cmd PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) -create_resource("../../dist/yuzu.bmp" "yuzu_cmd/yuzu_icon.h" "yuzu_icon") -target_include_directories(yuzu-cmd PRIVATE ${RESOURCES_DIR}) +create_resource("../../dist/citron.bmp" "citron_cmd/citron_icon.h" "citron_icon") +target_include_directories(citron-cmd PRIVATE ${RESOURCES_DIR}) -target_link_libraries(yuzu-cmd PRIVATE SDL2::SDL2 Vulkan::Headers) +target_link_libraries(citron-cmd PRIVATE SDL2::SDL2 Vulkan::Headers) if(UNIX AND NOT APPLE) - install(TARGETS yuzu-cmd) + install(TARGETS citron-cmd) endif() if(WIN32) # compile as a win32 gui application instead of a console application if(MSVC) - set_target_properties(yuzu-cmd PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup") + set_target_properties(citron-cmd PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup") elseif(MINGW) - set_target_properties(yuzu-cmd PROPERTIES LINK_FLAGS_RELEASE "-Wl,--subsystem,windows") + set_target_properties(citron-cmd PROPERTIES LINK_FLAGS_RELEASE "-Wl,--subsystem,windows") endif() endif() if (MSVC) - include(CopyYuzuSDLDeps) - copy_yuzu_SDL_deps(yuzu-cmd) + include(CopyCitronSDLDeps) + copy_citron_SDL_deps(citron-cmd) endif() -if (YUZU_USE_PRECOMPILED_HEADERS) - target_precompile_headers(yuzu-cmd PRIVATE precompiled_headers.h) +if (CITRON_USE_PRECOMPILED_HEADERS) + target_precompile_headers(citron-cmd PRIVATE precompiled_headers.h) endif() -create_target_directory_groups(yuzu-cmd) +create_target_directory_groups(citron-cmd) |