mirror of
https://github.com/lubosz/overte.git
synced 2025-08-06 18:33:21 +02:00
18 lines
526 B
CMake
18 lines
526 B
CMake
set(TARGET_NAME package-console)
|
|
|
|
# add a target that when built will produce an executable of console for this platform
|
|
if (APPLE)
|
|
set(PACKAGE_COMMAND package-darwin)
|
|
elseif (WIN32)
|
|
set(PACKAGE_COMMAND package-win)
|
|
elseif (UNIX)
|
|
set(PACKAGE_COMMAND package-linux)
|
|
endif ()
|
|
|
|
# add a target that will package the console
|
|
add_custom_target(${TARGET_NAME}
|
|
COMMAND npm run-script ${PACKAGE_COMMAND} -- --out ${CMAKE_CURRENT_BINARY_DIR}
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
consolidate_installer_components()
|