Re: [CMake] Adding a link?

2017-03-06 Thread Bernhard Seckinger
Hi Roger, > install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E > create_symlink bzip2 > \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/bunzip2\")" > COMPONENT "runtime") Hi thanks, that works when I add install(DIRECTORY DESTINATION

Re: [CMake] Adding a link?

2017-03-06 Thread Roger Leigh
On 06/03/2017 12:43, Bernhard Seckinger wrote: Hi all, I've got a project where meanwhile everything works, using cmake, but a tiny detail. I've got a frontend which consists of several php files. I copy them into a subfolder of share/ with the install command. Now I need a symlink from

[CMake] Adding a link?

2017-03-06 Thread Bernhard Seckinger
Hi all, I've got a project where meanwhile everything works, using cmake, but a tiny detail. I've got a frontend which consists of several php files. I copy them into a subfolder of share/ with the install command. Now I need a symlink from bin/croco to share/croco/main.php that is, after

[CMake] adding a link directory

2011-05-08 Thread Liam Kurmos
Hi, I've been using cmake to build vtk projects for some time, but i've only really learnt the minimum i need. Now i want to link against a single shared library. until now i've added libraries with eg. TARGET_LINK_LIBRARIES(testOVAS vtkWidgets vtkRendering vtkHybrid vnl tourtre) which has

Re: [CMake] adding a link directory

2011-05-08 Thread Rolf Eike Beer
Am Sonntag, 8. Mai 2011, 14:25:34 schrieb Liam Kurmos: Hi, I've been using cmake to build vtk projects for some time, but i've only really learnt the minimum i need. Now i want to link against a single shared library. until now i've added libraries with eg.

Re: [CMake] adding a link directory

2011-05-08 Thread Liam Kurmos
thanks Rolf, but no joy. i must have done something else wrong. Is there a way to make cmake output the link command? i get undefined link errors (as below). when i made a simple test of linking these with a gcc command everything worked using the -L/absPath/ libtourtre definitely provides the

Re: [CMake] adding a link directory

2011-05-08 Thread Alexander Neundorf
On Sunday 08 May 2011, Liam Kurmos wrote: thanks Rolf, but no joy. i must have done something else wrong. Is there a way to make cmake output the link command? make VERBOSE=1 i get undefined link errors (as below). when i made a simple test of linking these with a gcc command everything

Re: [CMake] adding a link directory

2011-05-08 Thread Liam Kurmos
Hi, I made a separate exe to test this and it linked with TARGET_LINK_LIBRARIES so this problem is not a cmake one. Something must me different in the too code contexts... if checked the obvious includes etc but atleast i know this is not cmake that is not linking. and then you can set the

Re: [CMake] adding a link directory

2011-05-08 Thread Liam Kurmos
I made a separate exe to test this and it linked with TARGET_LINK_LIBRARIES so this problem is not a cmake one. Something must me different in the too code contexts... if checked the obvious includes etc but atleast i know this is not cmake that is not linking. actually i withdraw this. an

Re: [CMake] adding a link directory

2011-05-08 Thread Liam Kurmos
that finally solve my problem! i needed to put extern C {} around my include (not something i knew about). thanks to all who helped! Liam On Sun, May 8, 2011 at 5:59 PM, Liam Kurmos quantum.l...@gmail.com wrote: I made a separate exe to test this and it linked with TARGET_LINK_LIBRARIES so