mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +02:00
24 lines
730 B
CMake
24 lines
730 B
CMake
set(TARGET_NAME package-console)
|
|
|
|
if (BUILD_TAGGED_BETA)
|
|
set(BETA_OPTION "--beta")
|
|
endif()
|
|
|
|
# add a target that will package the console
|
|
add_custom_target(${TARGET_NAME}
|
|
COMMAND npm run packager -- --out ${CMAKE_CURRENT_BINARY_DIR} ${BETA_OPTION}
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
# set the packaged console folder depending on platform, so we can copy it
|
|
if (APPLE)
|
|
set(PACKAGED_CONSOLE_FOLDER "Server\\ Console-darwin-x64")
|
|
elseif (WIN32)
|
|
set(PACKAGED_CONSOLE_FOLDER "server-console-win32-x64")
|
|
elseif (UNIX)
|
|
set(PACKAGED_CONSOLE_FOLDER "server-console-linux-x64")
|
|
endif ()
|
|
|
|
set_target_properties(${TARGET_NAME} PROPERTIES EXCLUDE_FROM_ALL TRUE FOLDER "Installer")
|
|
|
|
consolidate_installer_components()
|