Hello everyone,
I have a Qt application that search for another Qt applications and some
plugins too. On Windows, I just create the executables in the same
folder but on Mac OS X, I can't do that: I must create a bundle like this:
MyApplication.app/
Contents/
Frameworks/
**all qt library**
**all application dependencies**
libPluginInterface.dylib
Resources/
**application icon**
MacOS/
MyApplication
subApplication1
subApplication2
PlugIns/
**all my plugins** (.dylib)
When I'll open MyApplication.app, I'd like to launch MyApplication
executable.
For now, my applications and plugins are store like this:
Project/
CMakeLists.txt
MyApplication/
CMakeLists.txt
**source_files**
PluginInterface/
CMakeLists.txt
**source_files**
subApplication1/
CMakeLists.txt
**source_files**
subApplication2/
CMakeLists.txt
**source_files**
plugins/
CMakeLists.txt
plugin1/
CMakeLists.txt
**source_files**
MyApplication and all the plugins depends on PluginInterface (a shared
library).
For now, I have many difficulties about the link path. I don't
understand very well how to use @rpath for my libraries.
So, my first question: is-it possible to do something like this?
Second, can you show me some examples about this please?
Thank you.
Romain
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake