mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
change packaging command per platform
This commit is contained in:
parent
2ff9d7a28c
commit
1ac5ba3b8c
1 changed files with 9 additions and 1 deletions
|
@ -1,7 +1,15 @@
|
|||
set(PACKAGING_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_custom_target(${PACKAGING_TARGET_NAME}
|
||||
COMMAND npm run-script package-darwin
|
||||
COMMAND npm run-script ${PACKAGE_COMMAND}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue