Dear Clinton and David,
Thanks for your replies. I did notice the COMPONENT discrepancy on my
other project, but I figured out now that I had misunderstood the
first time (or at least I think so). What I wrote then was something
along the lines of (which didn't work):
INSTALL(TARGETS ${mtargets}
This doesn't look right:
INSTALL(TARGETS ${mtargets}
BUNDLE DESTINATION .
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
INSTALL(CODE "
include(BundleUtilities)
fixup_bundle(\"${APPS}\" \"\" \"${DIRS}\")
" COMPONENT Runtime)
The target and fixup
Good catch, Clinton. I did not notice the COMPONENT discrepancy.
On Tue, Dec 20, 2011 at 6:26 PM, Clinton Stimpson wrote:
>
> This doesn't look right:
>
> INSTALL(TARGETS ${mtargets}
> BUNDLE DESTINATION .
> RUNTIME DESTINATION bin
> LIBRARY DESTINATION lib
> ARCHIVE DESTINATION lib
> )
>
>
You're doing this:
set(APPS "\${CMAKE_INSTALL_PREFIX}/madx${BINARY_POSTFIX}.app") #
paths to executables
set(DIRS "")
Then this:
INSTALL(CODE "
include(BundleUtilities)
fixup_bundle(\"${APPS}\" \"\" \"${DIRS}\")
" COMPONENT Runtime)
Which means that your install code (in
I *have* to learn to click reply all soon! Sorry once again.
Cheers,
Yngve
-- Forwarded message --
From: Yngve Levinsen
Date: 19 December 2011 17:30
Subject: Re: [CMake] Fwd: cpack DragNDrop on OSX 10.7
To: David Cole
I did not change any install rules. Yes it was working bef