From 25728c207155e2610e0d8021e5cc0b884739299d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Fri, 1 Mar 2013 09:38:04 +0000 Subject: [PATCH] Test for a custom package command depending on fixbundle called OpenFlipper_package git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16441 383ad7c9-94d9-4d36-a494-682f7c89f535 --- CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e5d8dc5e..e9ba638d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -241,6 +241,23 @@ if (APPLE AND OPENFLIPPER_CALL_FIX_BUNDLE) USE_SOURCE_PERMISSIONS) endif () + +# ======================================================================== +# Custom command to create a package +# ======================================================================== + +if ( WIN32 OR APPLE ) + + # Call fixbundle first + # afterwards we call make package as an external command, as we can't + # add a dependency on build in targets of cake + add_custom_target (OpenFlipper_package + DEPENDS fixbundle + COMMAND make package + ) + +endif() + # ======================================================================== # Output log information # ======================================================================== -- GitLab