cmake: Added citra_room_standalone target and ENABLE_ROOM_STANDALONE option

This commit is contained in:
OpenSauce04
2025-04-02 16:14:03 +01:00
committed by AzaharPlus
parent 784e588b32
commit 29d06c81af
4 changed files with 29 additions and 1 deletions

View File

@@ -199,6 +199,10 @@ if (ENABLE_ROOM)
add_subdirectory(citra_room)
endif()
if (ENABLE_ROOM_STANDALONE)
add_subdirectory(citra_room_standalone)
endif()
if (ANDROID)
add_subdirectory(android/app/src/main/jni)
target_include_directories(citra-android PRIVATE android/app/src/main)

View File

@@ -0,0 +1,11 @@
add_executable(citra_room_standalone
citra_room_standalone.cpp
)
set_target_properties(citra_room_standalone PROPERTIES OUTPUT_NAME "azahar-room")
target_link_libraries(citra_room_standalone PRIVATE citra_room)
if(UNIX AND NOT APPLE)
install(TARGETS citra_room_standalone RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
endif()

View File

@@ -0,0 +1,9 @@
// Copyright Citra Emulator Project / Azahar Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "citra_room/citra_room.h"
int main(int argc, char* argv[]) {
LaunchRoom(argc, argv);
}