[CMake] Import library not generated under Visual Studio

2008-06-05 Thread Martin Apel
Hi all, I am trying to port a project using CMake 2.6 from Linux to Windows. The project build works without problems under Linux. However when trying to build the project inside Visual Studio 8 after having generated the project files using CMake, no import libraries are generated. The

Re: [CMake] Import library not generated under Visual Studio

2008-06-05 Thread Christian Ehrlicher
Von: Martin Apel Hi all, I am trying to port a project using CMake 2.6 from Linux to Windows. The project build works without problems under Linux. However when trying to build the project inside Visual Studio 8 after having generated the project files using CMake, no import libraries

Re: [CMake] Import library not generated under Visual Studio

2008-06-05 Thread Werner Smekal
Hi, On 05.06.2008, at 10:18, Christian Ehrlicher wrote: Von: Martin Apel Hi all, I am trying to port a project using CMake 2.6 from Linux to Windows. The project build works without problems under Linux. However when trying to build the project inside Visual Studio 8 after having

Re: [CMake] Import library not generated under Visual Studio

2008-06-05 Thread Martin Apel
Christian Ehrlicher wrote: Von: Martin Apel Hi all, I am trying to port a project using CMake 2.6 from Linux to Windows. The project build works without problems under Linux. However when trying to build the project inside Visual Studio 8 after having generated the project files using CMake,

[CMake] Package: dev vs runtime package

2008-06-05 Thread Mathieu Malaterre
Hi, Has anyone started working on the development vs runtime package. For example the runtime package should only install libfoo.so.1.2 while the -dev package would distribute the libfoo.so symlink to libfoo.so.1.2. I know that cpack does not support multiple package right now, but I would

Re: [CMake] Package: dev vs runtime package

2008-06-05 Thread Timenkov Yuri
On Thursday 05 June 2008 17:36:06 Mathieu Malaterre wrote: Hi, Has anyone started working on the development vs runtime package. For example the runtime package should only install libfoo.so.1.2 while the -dev package would distribute the libfoo.so symlink to libfoo.so.1.2. I know

Re: [CMake] Package: dev vs runtime package

2008-06-05 Thread Mathieu Malaterre
On Thu, Jun 5, 2008 at 3:39 PM, Timenkov Yuri [EMAIL PROTECTED] wrote: On Thursday 05 June 2008 17:36:06 Mathieu Malaterre wrote: Hi, Has anyone started working on the development vs runtime package. For example the runtime package should only install libfoo.so.1.2 while the -dev package

Re: [CMake] Package: dev vs runtime package

2008-06-05 Thread Mathieu Malaterre
On Thu, Jun 5, 2008 at 3:54 PM, Timenkov Yuri [EMAIL PROTECTED] wrote: On Thursday 05 June 2008 17:47:27 Mathieu Malaterre wrote: On Thu, Jun 5, 2008 at 3:39 PM, Timenkov Yuri [EMAIL PROTECTED] wrote: On Thursday 05 June 2008 17:36:06 Mathieu Malaterre wrote: Hi, Has anyone started

Re: [CMake] Package: dev vs runtime package

2008-06-05 Thread Timenkov Yuri
On Thursday 05 June 2008 17:47:27 Mathieu Malaterre wrote: On Thu, Jun 5, 2008 at 3:39 PM, Timenkov Yuri [EMAIL PROTECTED] wrote: On Thursday 05 June 2008 17:36:06 Mathieu Malaterre wrote: Hi, Has anyone started working on the development vs runtime package. For example the runtime

[CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-06-05 Thread Martin Apel
Hi all, I am trying to set the CMAKE_CXX_FLAGS or CMAKE_CXX_FLAGS_INIT variable, such that it contains flags to turn off specific warnings for the Visual Studio compiler. I definitely want to set these additional flags from within a CMakeFile, specifying them on the command line or

Re: [CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-06-05 Thread Werner Smekal
Hi, just use ADD_DEFINITION, e.g. # Disable warnings about deprecated functions (Visual C++ 2005) if(MSVC_VERSION GREATER 1399) ADD_DEFINITIONS(/D_CRT_SECURE_NO_DEPRECATE) endif(MSVC_VERSION GREATER 1399) You could just use if(WIN32) but than for all compilers on Windows this option would be

[CMake] Post-Build Step on Windows

2008-06-05 Thread Hari Sundar
Hi, I am trying to write a Post-Build step custom rule for Windows. It basically involves copying the project shared library to a given location. When setup using INSTALL this works fine. INSTALL(FILES config DESTINATION ${INSTALL_DIR}/plugins/${PROJECT_NAME}) INSTALL(TARGETS ${PROJECT_NAME}

[CMake] newbie CMakeLists.txt help: How to import variables from other projects

2008-06-05 Thread Elvis Chen
hi all, I'm beginning to migrate all my codes to use cmake and I seek your help. I apologize in advance if this is a trivial question. I'm using Ubuntu 7.10 with cmake 2.4. I'm trying to compile a project called vtkCuda that integrates NVidia's CUDA volume rendering techniques into vtk.

[CMake] Force out of source build

2008-06-05 Thread hsanson
I want to make sure I don't run cmake inside my source tree. I tried something like IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR}) MESSAGE(FATAL Don't build inside the source tree) ENDIF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR}) But seems the