From 370fc35eaf849e82ffea9fc1f074ae94d773b631 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 2 Dec 2015 15:41:17 -0800 Subject: [PATCH] add PACKAGING_TARGET_NAME variable --- console/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/console/CMakeLists.txt b/console/CMakeLists.txt index d4eb339dd4..4cf96f2716 100644 --- a/console/CMakeLists.txt +++ b/console/CMakeLists.txt @@ -1,5 +1,7 @@ -# add a command to produce an executable for this platform -add_custom_target(package-console +set(PACKAGING_TARGET_NAME package-console) + +# add a target that when built will produce an executable of console for this platform +add_custom_target(${PACKAGING_TARGET_NAME} COMMAND npm run-script package-darwin WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )