[CMake] CPack and alternative install locations

2010-01-09 Thread Daniel Stonier
How does one cpack a deb into a toolchain's location? With cmake_install_prefix I can get it to compile and install into the correct place easily for both native builds (/usr/local) and cross-builds (/usr/arm-unknown-linux-gnueabi/usr/local). However, cpack ignores these settings and also seems

Re: [CMake] Qt qmake not found

2010-01-09 Thread Michael Jackson
On Jan 8, 2010, at 10:26 PM, David Doria wrote: On Fri, Jan 8, 2010 at 10:10 PM, David Doria daviddo...@gmail.com wrote: On Fri, Jan 8, 2010 at 10:07 PM, Mike Jackson mike.jack...@bluequartz.net wrote: You installed qt version 3 instead of qt version 4. Sudo apt-get install qt4-dev. Or

Re: [CMake] Qt qmake not found

2010-01-09 Thread Clinton Stimpson
One last thing (hopefully). What's the trick to making it find: QT_PHONON_INCLUDE_DIR automatically? I set it to /usr/include/phonon and it works - but why wouldn't cmake find this? Thanks, David Maybe a bug in FindQt4.cmake? It probably is a bug. Can you open a bug report? Its found

Re: [CMake] Qt qmake not found

2010-01-09 Thread David Doria
On Sat, Jan 9, 2010 at 12:20 PM, Clinton Stimpson clin...@elemtech.com wrote: One last thing (hopefully). What's the trick to making it find: QT_PHONON_INCLUDE_DIR automatically? I set it to /usr/include/phonon and it works - but why wouldn't cmake find this? Thanks, David Maybe a

[CMake] ANN: UseOcaml.cmake

2010-01-09 Thread Keyan
Hi, adapted from UseLATEX.cmake, i wrote a UseOcaml.cmake script, which can be found here: http://yars.svn.sourceforge.net/viewvc/yars/branches/yars-refactoring/modules/UseOcaml.cmake?revision=509view=markup it is not complete yet, but it allows to easily compile ocaml-binaries in the

[CMake] Coloured output for cmake on windows

2010-01-09 Thread Chauhan, Vikas
Hi, I guess there is no end to wishes this is another example of it. Is it possible to get a coloured output on windows using a build command like: cmake --build . ? Currently is it because dos cmd window doesn't support it or there is some other reason? Thanks, Vikas

[CMake] rule to generate assembler listings for each c file

2010-01-09 Thread Arne Pagel
Hello, I try to use cmake for crosscompiling an embedded project with arm-elf-gcc. For a simple project, a CMakeLists.txt like this works fine for me: cmake_minimum_required(VERSION 2.6) SET(CMAKE_SYSTEM_NAME Generic) SET(CMAKE_C_COMPILER arm-elf-gcc) SET (CMAKE_SHARED_LINKER_FLAGS_INIT )

Re: [CMake] error while stage install of crosscompiled binaries

2010-01-09 Thread Claus Klein
Hi all, now I got it: There are 3 different problems: 1.) never use an absolute DESTINATION path with INSTALL commands! ###XXX### INSTALL( FILES cmake/FindLibSmi.cmake DESTINATION $ {CMAKE_ROOT}/Modules ) 2.) never use an absolute source Path! ###XXX### INSTALL( FILES

[CMake] Can you add sources to a target library after add_library()?

2010-01-09 Thread Marcel Loose
Hi all, I've been searching the manuals, but couldn't find a way to add sources to a target library *after* the add_library() command, e.g., using set_target_properties()? Is this possible at all? Best regards, Marcel Loose. ___ Powered by

Re: [CMake] Can you add sources to a target library after add_library()?

2010-01-09 Thread Philip Lowman
I highly doubt it. Best practice is to just use conditionals to add the necessary source files to a list variable prior to the add_library() call. On Sat, Jan 9, 2010 at 5:48 PM, Marcel Loose lo...@astron.nl wrote: Hi all, I've been searching the manuals, but couldn't find a way to add