Re: [CMake] Relinking static libs

2008-04-10 Thread Jean Lepropre
Ok, I have similar instructions and it does not work (relink is not done): 1. In top-level CMakeLists.txt: ... ADD_SUBDIRECTORY(libs/bar) ADD_SUBDIRECTORY(applications/foo) ... 2. In libs/bar/CMakeLists.txt: ... ADD_LIBRARY(bar STATIC ...) ... 3. In applications/foo/CMakeLists.txt: ... LINK_D

[CMake] add_executable and WIN32 option

2008-04-10 Thread Alin M Elena
Hi I try to use WIN32 option with cmake 2.6 rc6 I added it in the add_executable + if(WIN32) ADD_DEFINITIONS(-D_AFXDLL) set(CMAKE_MFC_FLAG 2) endif(WIN32) in the CMakeLists.txt what I get is a linking error Linking CXX executable bin\aten.exe "C:\

Re: [CMake] NSIS no fix install path -> automatic searching for already installed programs (e.g. Matlab, Qt, ...)

2008-04-10 Thread Eric NOULARD
Le Thu, 10 Apr 2008 11:00:22 +0200, "stefan" <[EMAIL PROTECTED]> a écrit : > Hi cmake-community, > > > > Is it possible to add custom pre-install commands like the > post-install command via the CPACK_NSIS_EXTRA_INSTALL_COMMANDS > variable? > > > > For example I want to install a self made

Re: [CMake] add_executable and WIN32 option

2008-04-10 Thread Christian Ehrlicher
> Von: "Alin M Elena" > Hi > > > > I try to use WIN32 option with cmake 2.6 rc6 > > > > MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol > [EMAIL PROTECTED] referenced in function ___tmainCRTStartu > > p > Read the wiki faq: http://www.cmake.org/Wiki/C

[CMake] NSIS no fix install path -> automatic searching for already installed programs (e.g. Matlab, Qt, ...)

2008-04-10 Thread stefan
Hi cmake-community, Is it possible to add custom pre-install commands like the post-install command via the CPACK_NSIS_EXTRA_INSTALL_COMMANDS variable? For example I want to install a self made Matlab Toolbox or a plugin for Winamp, Qt and so on. The installer have to search for the path we

Re: [CMake] NSIS no fix install path -> automatic searching for already installed programs (e.g. Matlab, Qt, ...)

2008-04-10 Thread Stefan
Okay I saw your answer, but I did not associate it with my problem. Because it is only a workaround not a good and safe solution in general. If I overwrite the CMAKE_MODULE_PATH, does cmake find the other standard Modules if I need them? The other problem is, that I have to choose the same filen

Re: [CMake] add_executable and WIN32 option

2008-04-10 Thread Alin M Elena
Hi, Thanks Christian for the answer. I think that I am a little confused about what WIN32 option does in fact. Is WIN32 supposed to transform main() in a WinMain() entry point (transform a /subsystem:console -> /subsystem:windows)? Or WIN32 tells compiler: do not downgrade a WinMain to a main()?

Re: [CMake] NSIS no fix install path -> automatic searching for already installed programs (e.g. Matlab, Qt, ...)

2008-04-10 Thread Eric NOULARD
Le Thu, 10 Apr 2008 12:02:44 +0200, "Stefan" <[EMAIL PROTECTED]> a écrit : > Okay I saw your answer, but I did not associate it with my problem. > Because it is only a workaround not a good and safe solution in > general. > > If I overwrite the CMAKE_MODULE_PATH, does cmake find the other > stan

Re: [CMake] Adding configuration for a new compiler

2008-04-10 Thread Hendrik Sattler
Zitat von Pau Garcia i Quiles <[EMAIL PROTECTED]>: Quoting Alexander Neundorf <[EMAIL PROTECTED]>: On Wednesday 09 April 2008, Hendrik Sattler wrote: Hi, I would like to make CMake work with an embedded cross-compiler, namely nc30. What compiler is that ? Google on nc30 gives this: http://w

Re: [CMake] Relinking static libs

2008-04-10 Thread Bill Hoffman
Jean Lepropre wrote: Ok, I have similar instructions and it does not work (relink is not done): 1. In top-level CMakeLists.txt: ... ADD_SUBDIRECTORY(libs/bar) ADD_SUBDIRECTORY(applications/foo) ... 2. In libs/bar/CMakeLists.txt: ... ADD_LIBRARY(bar STATIC ...) ... 3. In applications/foo/CMa

[CMake] LIBRARY_OUTPUT_PATH

2008-04-10 Thread Matthias Riechmann
Hi everybody, I'm using the following commands to set the output directories of libraries and executables to the "bin" directory of my build path. But cmake always tells me that LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH are empty: SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) SE

Re: [CMake] LIBRARY_OUTPUT_PATH

2008-04-10 Thread Eric NOULARD
Le Thu, 10 Apr 2008 16:00:30 +0200, Matthias Riechmann <[EMAIL PROTECTED]> a écrit : > Hi everybody, > > I'm using the following commands to set the output directories of > libraries and executables to the "bin" directory of my build path. > But cmake always tells me that LIBRARY_OUTPUT_PATH and

Re: [CMake] LIBRARY_OUTPUT_PATH

2008-04-10 Thread Matthias Riechmann
Here You are: project(HelloWorld) CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0) FIND_PACKAGE(Qt4 REQUIRED) SET(QT_USE_QTSVG TRUE) SET(QT_USE_QTXML TRUE) INCLUDE(${QT_USE_FILE}) find_package(VTK REQUIRED) INCLUDE(${VTK_USE_FILE}) FIND_PACKAGE(ITK REQUIRED) INCLUDE(${ITK_USE_FILE}) FIND_PATH(ITK_VTK_GL

Re: [CMake] LIBRARY_OUTPUT_PATH

2008-04-10 Thread Eric NOULARD
Le Thu, 10 Apr 2008 16:27:31 +0200, Matthias Riechmann <[EMAIL PROTECTED]> a écrit : > Here You are: > > project(HelloWorld) > CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0) May be you miss a ENABLE_LANGAGE(C) or ENABLE_LANGAGE(CXX) or project(HelloWorld CXX) or project(HelloWorld C) I don't think it i

Re: [CMake] LIBRARY_OUTPUT_PATH

2008-04-10 Thread Matthias Riechmann
I'm using CMake 2.4.8 on Windows XP with Visual Studio 2005 About the log files. I had a look at them but I can't find anything of interest. I attached them to this mail, just in case. Eric NOULARD schrieb: Le Thu, 10 Apr 2008 16:27:31 +0200, Matthias Riechmann <[EMAIL PROTECTED]> a écrit :

Re: [CMake] LIBRARY_OUTPUT_PATH

2008-04-10 Thread David Cole
If you build your project, do the exes and libs go to the "bin" directory...? When you say they are "empty" do you mean when viewed in the CMakeSetup, cmake-gui or ccmake program...? These are cache variables and unless you SET them with CACHE and FORCE in your CMakeLists.txt file they will not sho

[CMake] Changing PreprocessorDefinitions

2008-04-10 Thread Michael Andronov
Hi, Let me explain my question briefly: 1. I'm trying to write the CMakeLists.txt, which will generate a proper project for Visual Studio .net. 2. Within my CMakeLists.txt, I set the variable: SET (COMPILE_FLAGS "/W3 /nologo /c /Wp64 /ZI /Gd /TP ") 3. My expectation is that above variable will

Re: [CMake] Changing PreprocessorDefinitions

2008-04-10 Thread Bill Hoffman
Michael Andronov wrote: Hi, Let me explain my question briefly: 1. I'm trying to write the CMakeLists.txt, which will generate a proper project for Visual Studio .net. 2. Within my CMakeLists.txt, I set the variable: SET (COMPILE_FLAGS "/W3 /nologo /c /Wp64 /ZI /Gd /TP ") 3. My expectation

[CMake] MakeFile problem with TARGET_LINK_LIBRARIES and non-standard 3rd party dyn lib

2008-04-10 Thread fbonin.ext
Hello, I'm very new to cmake but i thing i found a problem : I build cmakelist.txt files for target : 1/ "Visual Studio 8 2005" projects using "Cmake 2.4-patch 8" on Windows XP, i386 2/ "XCode" projects using "Cmake 2.4-patch 8" on Mac Os X 10.5, i386 3/ "Unix Makefiles" makfiles

Re: [CMake] Changing PreprocessorDefinitions

2008-04-10 Thread Michael Andronov
Hi, With speedy advice from Bill Hoffman I have found the problem: (as most of the times it was in a chair in front of my computer :). add_definitions(-DPOSIX -DIA32) were indeed embedded in my own code ). Issue resolved, Thanks for attention to this matter. Michael. On Thu, Apr 10, 2008 at

[CMake] CMake 2.6.0 RC 8 ready for testing

2008-04-10 Thread Bill Hoffman
I am happy to announce that CMake 2.6.0 RC8 is ready for testing. You can find the source and binaries here: http://www.cmake.org/files/v2.6/ Here is the list of changes for the 2.6.0 branch so far: Changes in CMake 2.6.0 RC 8 - Fix sun make very poor performance - Fix includes for automoc in F

[CMake] CMake single rule instead of multiple

2008-04-10 Thread Praveen Kannan
Hi, I am a newbie to CMake and I am very impressed by this tool. There is one thing that I am a bit concerned about. I used a sample Qt 3 based project to evaluate CMake and used the FindQt3 package to do my work. Works great! However under Visual Studio 2005 I do end up seeing many CMake rules

Re: [CMake] MakeFile problem with TARGET_LINK_LIBRARIES and non-standard 3rd party dyn lib

2008-04-10 Thread Alexander Neundorf
On Thursday 10 April 2008, [EMAIL PROTECTED] wrote: > Hello, > ... > PROJECT (TEST) > > SET(TEST_MODULE_SRCS "whatever.cpp") > SOURCE_GROUP(src FILES ${TEST_MODULE_SRCS}) > > SET(TEST_MODULE_HDRS"whatever.h") > SOURCE_GROUP(inc FILES ${TEST_MODULE_HDRS}) > > ADD_LIBRARY(TESTSHARED ${TEST_MOD

Re: [CMake] CMake single rule instead of multiple

2008-04-10 Thread Alexander Neundorf
On Thursday 10 April 2008, Praveen Kannan wrote: > Hi, > > I am a newbie to CMake and I am very impressed by this tool. > > There is one thing that I am a bit concerned about. > > I used a sample Qt 3 based project to evaluate CMake and used the FindQt3 > package to do my work. Works great! However

[CMake] ITK and wxWidgets

2008-04-10 Thread Olivier Tournaire
Hi all, I am currently developing a project involving ITK and wxWidgets. My CMakeLists.txt generates nice projects both for Linux and Windows. However, when I create an Xcode project for OSX, I cannot run my program in release configuration. It compiles and links fine, but, when I try to run the p

Re: [CMake] Adding configuration for a new compiler

2008-04-10 Thread Brad King
Hendrik Sattler wrote: The C compiler test fails because CMake insists on createing testCCompiler.c.r30 and there doesn't seem to be way to tell it to not include the source file name extension (here: .c) into the object file name. It's undocumented because I didn't anticipate anyone would n

Re: [CMake] Adding configuration for a new compiler

2008-04-10 Thread Hendrik Sattler
Am Donnerstag 10 April 2008 schrieb Brad King: > Hendrik Sattler wrote: > > The C compiler test fails because CMake insists on createing > > testCCompiler.c.r30 and there doesn't seem to be way to tell it to not > > include the source file name extension (here: .c) into the object file > > name. >

[CMake] how to include a file that is under out-of-tree build directory

2008-04-10 Thread Jun Sun
I am staring to use cmake for an existing project. We generate a config.cmake file under current build directory. We like to include "config.cmake" in the in-tree CMakeLists.txt. cmake complains about not able to find "config.cmake". Can someone help? Here is the tree structure: src/ | +--

Re: [CMake] how to include a file that is under out-of-tree build directory

2008-04-10 Thread Maik Beckmann
Am Freitag 11 April 2008 01:36:26 schrieb Jun Sun: > I am staring to use cmake for an existing project. > > We generate a config.cmake file under current build directory. We like > to include "config.cmake" in the in-tree CMakeLists.txt. cmake complains > about not able to find "config.cmake". > >