Re: [CMake] Problem making vc project

2011-07-27 Thread Nima Nouri
Hi I cannot make a small stand alone example, it is a big project. however I have checked the cmakelists. I am sending you the part that is responsible for making the cuda file lists. On Thu, Jul 28, 2011 at 8:03 AM, Yuri Timenkov wrote: > The original CMakeLists will be helpful to solve your p

Re: [CMake] VS2010 and superbuild - Fwd: [Ctk-developers] VS2010 support

2011-07-27 Thread Yuri Timenkov
I'm not sure I understood your question, but now I use ExternalProject (from CMake 2.8.4) with Visual Studio 2010 which has 2 externals: one built with custom command (the C# project) and the second one is CMake-based but with VC6 generator. Everything compiles and works fine. But I don't have down

Re: [CMake] Problem making vc project

2011-07-27 Thread Yuri Timenkov
The original CMakeLists will be helpful to solve your problem. Could you provide a small stand-alone example reproducing your problem? On Wed, Jul 27, 2011 at 8:02 PM, Nima Nouri wrote: > Hi everybody > > I am currently trying to compile my source code on VC9. > Previously I was using VC8 and ev

Re: [CMake] Invalid library output directory when VC++ solution is generated

2011-07-27 Thread J Decker
Just as an alternative approach; instead of relying on having the code in-place, generate appropriate install directives RUNTIME_, ARCHIVE_ and LIBRARY_ issues similar, needing basically a macro my_install(target) if( WIN32) install( #what's correct for windows ) else( WIN32 ) install ( what's corr

Re: [CMake] VS2010 and superbuild - Fwd: [Ctk-developers] VS2010 support

2011-07-27 Thread Sascha Zelzer
Hi, Is nobody on this list using CTK or Slicer with Visual Studio 2010 in superbuild mode? If you do, could you please post if you had success or not? Thanks, Sascha On 07/22/2011 06:20 PM, Jean-Christophe Fillion-Robin wrote: Hi Folks, Before digging further into the problem ... if some yo

Re: [CMake] Invalid library output directory when VC++ solution is generated

2011-07-27 Thread Glenn Coombs
You could set the target property RUNTIME_OUTPUT_DIRECTORY on your library targets. That would override the CMAKE_RUNTIME_OUTPUT_DIRECTORY variable just for those targets. 2011/7/27 Laura Autón García > Hello Alan, > Thank you very much for your answer. > It woks perfectly using deprecated opti

Re: [CMake] Buggy CPack generator behaviour?

2011-07-27 Thread Eric Noulard
2011/7/27 Bjørn Forsman : > Hi all, > > I wonder if I've hit some bugs in the CPack generators, specifically > TGZ and DEB. They do not behave as I expect them to. What I expect > them to do is to generate an archive of files that look exactly like > what 'make install' puts in DESTDIR. If this is

[CMake] Buggy CPack generator behaviour?

2011-07-27 Thread Bjørn Forsman
Hi all, I wonder if I've hit some bugs in the CPack generators, specifically TGZ and DEB. They do not behave as I expect them to. What I expect them to do is to generate an archive of files that look exactly like what 'make install' puts in DESTDIR. If this is a wrong assumption then please tell m

Re: [CMake] Cross Compiling with cmake 2.8.5

2011-07-27 Thread Eric Noulard
2011/7/27 : > Hi all, > > I tried to cross-compile an internal application for windows on a linux > machine, > but failed, because cmake at some point re-start the configure process, and > drops the CMAKE_SYSTEM_NAME variable along that way. Attached is a > minimal CMakeLists.txt, which reproduces

[CMake] Cross Compiling with cmake 2.8.5

2011-07-27 Thread r . czerny
Hi all, I tried to cross-compile an internal application for windows on a linux machine, but failed, because cmake at some point re-start the configure process, and drops the CMAKE_SYSTEM_NAME variable along that way. Attached is a minimal CMakeLists.txt, which reproduces the problem. Is there

Re: [CMake] Linking problem

2011-07-27 Thread Sanatan Rai
On 27 July 2011 13:20, Maxime Lecourt wrote: > Hi, > > is that a valid CMake instruction ? > target_link_libraries(bt "-Wl,-whole-archive -L../idt/ -latidt > -Wl,-no-whole-archive") Yes, it certainly works. > I thought you were supposed to use > set_target_properties(bt PROPERTIES LINK_FLAGS

Re: [CMake] Linking problem

2011-07-27 Thread Maxime Lecourt
Hi, is that a valid CMake instruction ? target_link_libraries(bt "-Wl,-whole-archive -L../idt/ -latidt -Wl,-no-whole-archive") I thought you were supposed to use set_target_properties(bt PROPERTIES LINK_FLAGS "-Wl,-whole-archive -L../idt/ -latidt -Wl,-no-whole-archive") Maxime 2011/7/27 Sanata

Re: [CMake] Linking problem

2011-07-27 Thread Sanatan Rai
On 27 July 2011 12:37, Rolf Eike Beer wrote: >> include_directories(${at_SOURCE_DIR}) >> add_library(atfwmath RngStream.cpp RngStream.h coin.cpp coin.hpp) >> target_link_libraries(atfwmath) > > You are telling CMake here that atfwmath should be linked against > something. But you don't tell it aga

Re: [CMake] Linking problem

2011-07-27 Thread Sanatan Rai
On 27 July 2011 12:33, Marcel Loose wrote: > Hi Sanatan, > > If you didn't make any copy/paste errors, then I think you made a typo. > >> add_library(atfwmath RngStream.cpp RngStream.h coin.cpp coin.hpp) >> : >> : >> target_link_libraries(bt atidt atmath boost_date_time > boost_program_options) >

Re: [CMake] Linking problem

2011-07-27 Thread Rolf Eike Beer
> include_directories(${at_SOURCE_DIR}) > add_library(atfwmath RngStream.cpp RngStream.h coin.cpp coin.hpp) > target_link_libraries(atfwmath) You are telling CMake here that atfwmath should be linked against something. But you don't tell it against what. Eike _

Re: [CMake] Linking problem

2011-07-27 Thread Marcel Loose
Hi Sanatan, If you didn't make any copy/paste errors, then I think you made a typo. > add_library(atfwmath RngStream.cpp RngStream.h coin.cpp coin.hpp) > : > : > target_link_libraries(bt atidt atmath boost_date_time boost_program_options) See: atfwmath versus atmath. You should fix your add_libr

Re: [CMake] Linking problem

2011-07-27 Thread Marcel Loose
On Wed, 2011-07-27 at 12:14 +0100, Sanatan Rai wrote: > Hi, >This is a newbie question. So apologies in advance if this is covered > somewhere in the docs (I haven't been able to find a satisfactory explanation). > > The issue is this: > > * I have a library called (lib)atmath as per: > > in

Re: [CMake] Invalid library output directory when VC++ solution is generated

2011-07-27 Thread Laura Autón García
Hello Alan, Thank you very much for your answer. It woks perfectly using deprecated options, which is kind of funny, isn't it? As Glenn pointed out in his reply afterwards, newer options (ARCHIVE_OUTPUT_DIRECTORY, LIBRARY_OUTPUT_DIRECTORY and RUNTIME_OUTPUT_DIRECTORY) work differently from deprecat

[CMake] Linking problem

2011-07-27 Thread Sanatan Rai
Hi, This is a newbie question. So apologies in advance if this is covered somewhere in the docs (I haven't been able to find a satisfactory explanation). The issue is this: * I have a library called (lib)atmath as per: include_directories(${at_SOURCE_DIR}) add_library(atfwmath RngStream.cpp R

Re: [CMake] Invalid library output directory when VC++ solution is generated

2011-07-27 Thread Laura Autón García
Hello glenn, Thank you for your answer. I misunderstood the documentation. Thank you for pointing this out! Documentation: "...For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target..." It's a pity, be

Re: [CMake] Invalid library output directory when VC++ solution is generated

2011-07-27 Thread Rolf Eike Beer
> Have a look at the documentation for CMAKE_RUNTIME_OUTPUT_DIRECTORY. On > Linux the .so shared library files do go in the LIBRARY_OUTPUT_DIRECTORY. > However, on Windows the DLL files are placed in the runtime directory and > only the import libraries (.LIB files) are placed in the > LIBRARY_OUT

Re: [CMake] Invalid library output directory when VC++ solution is generated

2011-07-27 Thread Rolf Eike Beer
> Have a look at the documentation for CMAKE_RUNTIME_OUTPUT_DIRECTORY. On > Linux the .so shared library files do go in the LIBRARY_OUTPUT_DIRECTORY. > However, on Windows the DLL files are placed in the runtime directory and > only the import libraries (.LIB files) are placed in the > LIBRARY_OUT

Re: [CMake] Fwd: CPACK/NSIS: Subfolders/components related generation issue

2011-07-27 Thread Rolf Eike Beer
> Yes I do: > > install( > TARGETS GluonCore > RUNTIME DESTINATION bin > LIBRARY DESTINATION ${LIB_INSTALL_DIR} > ARCHIVE DESTINATION ${LIB_INSTALL_DIR} > FRAMEWORK DESTINATION ${LIB_INSTALL_DIR} > ) If all destinations point to the same place you don't need to set them all exp

Re: [CMake] Fwd: CPACK/NSIS: Subfolders/components related generation issue

2011-07-27 Thread Eric Noulard
2011/7/27 Laszlo Papp : > Hi Eric, > >> So the solution begins with DOT NOT USE ABSOLUTE INSTALL PATH, >> give it a try and tell us how it goes. > > Thanks a lot for your answer. It has been very useful. The components > seem much better for now after this change you were proposing: > https://proje