Re: [CMake] install files generator expression

2019-01-09 Thread Lars
Petr, That worked nicely. Cheers  regards, Lars Fra: Petr Kmoch Sendt: onsdag 9. januar 2019 16.11 Til: Lars Kopi: cmake@cmake.org Emne: Re: [CMake] install files generator expression Hi Lars. The DESTINATION parameter of install() accepts only a single

Re: [CMake] install files generator expression

2019-01-09 Thread Petr Kmoch
Hi Lars. The DESTINATION parameter of install() accepts only a single argument, which means it's tripping on the line break between the two genexes. Make it one argument: INSTALL(FILES ${qt5_locations} DESTINATION $<$:bin>$<$:lib> COMPONENT runtime) This should work. Petr On Wed, 9

[CMake] install files generator expression

2019-01-09 Thread Lars
Hello, We use find_package command in config mode to find Qt 5.11 libraries. The libraries are available as imported (Qt5::Core etc). Our understand is that CMake does not support install of imported targets. Therefore we use get_target_property to find actual location of library and

[CMake] CMAke install files using cmake-generator-expression

2018-01-15 Thread Lars
Hello, Using CMake 3.8.1 on Windows 7 SP1. The following cmake expression will produce an error. INSTALL( FILES $<$${COMP_PATH}/win32/bin/comp.dll> DESTINATION "${install_dir}") "CMake error: Error evaluating generator expression: $. $ may only be used with binary targets. It

Re: [CMake] install(files...

2015-02-18 Thread Petr Kmoch
Hi Micha, these parameters, which are common to several install() commands, are described in the initial section of the command's docs: http://www.cmake.org/cmake/help/v3.2/command/install.html#introduction Petr On Wed, Feb 18, 2015 at 8:46 AM, Micha Renner micha.ren...@t-online.de wrote:

[CMake] install(files...

2015-02-17 Thread Micha Renner
Hello, In the manual the install(FILES...) command is described as this: install(FILES|PROGRAMS files... DESTINATION dir [PERMISSIONS permissions...] [CONFIGURATIONS [Debug|Release|...]] [COMPONENT component] [RENAME name] [OPTIONAL]) So what is the meaning of

[CMake] Install files quietly

2011-07-29 Thread Mathias Tausig
Hello! During the installation process, I am copying a quite large directory using INSTALL(DIRECTORY foo DESTINATION bar) When I run make install, every single file contained in foo is displayed in the shell. Is there some way to prevent a install command from printing to the command line?

Re: [CMake] Install files quietly

2011-07-29 Thread Michael Hertling
On 07/29/2011 11:43 AM, Mathias Tausig wrote: Hello! During the installation process, I am copying a quite large directory using INSTALL(DIRECTORY foo DESTINATION bar) When I run make install, every single file contained in foo is displayed in the shell. Is there some way to prevent a

Re: [CMake] install(FILES mylib-config.cmake DESTINATION lib/myproj)

2009-10-23 Thread Mathieu Malaterre
On Tue, Oct 20, 2009 at 9:32 AM, Mathieu Malaterre mathieu.malate...@gmail.com wrote: On Mon, Oct 19, 2009 at 9:51 PM, Brad King brad.k...@kitware.com wrote: Mathieu Malaterre wrote: Hi there,  I am trying some new functionalities in CMake, in particular:

Re: [CMake] install(FILES mylib-config.cmake DESTINATION lib/myproj)

2009-10-20 Thread Mathieu Malaterre
On Mon, Oct 19, 2009 at 9:51 PM, Brad King brad.k...@kitware.com wrote: Mathieu Malaterre wrote: Hi there,  I am trying some new functionalities in CMake, in particular: http://www.cmake.org/Wiki/CMake_2.6_Notes#Packaging_and_Exporting  However using cmake 2.8, I get an error: CMake

Re: [CMake] install(FILES mylib-config.cmake DESTINATION lib/myproj)

2009-10-19 Thread Brad King
Mathieu Malaterre wrote: Hi there, I am trying some new functionalities in CMake, in particular: http://www.cmake.org/Wiki/CMake_2.6_Notes#Packaging_and_Exporting However using cmake 2.8, I get an error: CMake Error at cmake_install.cmake:64 (FILE): file INSTALL cannot find

[CMake] install(FILES mylib-config.cmake DESTINATION lib/myproj)

2009-10-16 Thread Mathieu Malaterre
Hi there, I am trying some new functionalities in CMake, in particular: http://www.cmake.org/Wiki/CMake_2.6_Notes#Packaging_and_Exporting However using cmake 2.8, I get an error: CMake Error at cmake_install.cmake:64 (FILE): file INSTALL cannot find

[CMake] INSTALL(FILES ... ) and $(OutDir)

2008-11-18 Thread Mathieu Malaterre
Hi there, I am confused on how to use install(files...) with VS 2008 IDE. Here is what I wrote: cmake ADD_CUSTOM_COMMAND( OUTPUT ${GDCM_LIBRARY_DIR}/gdcm_csharp.dll COMMAND ${CMAKE_CSHARP_COMPILER} ARGS /t:library /out:${GDCM_LIBRARY_DIR}/gdcm_csharp.dll *.cs WORKING_DIRECTORY

Re: [CMake] INSTALL(FILES ... ) and $(OutDir)

2008-11-18 Thread Mathieu Malaterre
David, On Tue, Nov 18, 2008 at 1:09 PM, David Cole [EMAIL PROTECTED] wrote: Looks like your definition of GDCM_LIBRARY_DIR must include ${CMAKE_CFG_INTDIR}. You can't use that in an install rule... rather use \${BUILD_TYPE} (with an escaped dollar sign) like in the VTK install rules... Cool

Re: [CMake] INSTALL(FILES ... ) and $(OutDir): DEPENDENCIE ?

2008-11-18 Thread Mathieu Malaterre
On Tue, Nov 18, 2008 at 1:47 PM, Mathieu Malaterre [EMAIL PROTECTED] wrote: David, On Tue, Nov 18, 2008 at 1:09 PM, David Cole [EMAIL PROTECTED] wrote: Looks like your definition of GDCM_LIBRARY_DIR must include ${CMAKE_CFG_INTDIR}. You can't use that in an install rule... rather use

[CMake] INSTALL files

2006-10-26 Thread Gregor Berginc
Dear all, I am writting cmake file to build library libVisionComponents that includes sources from subdirectories (each subdir is different component). In the main cmake file, sources and headers are listed as ComponentName/File.cpp. The library is compiled successfully, but when I install it

Re: [CMake] INSTALL files

2006-10-26 Thread Brad King
Gregor Berginc wrote: I am writting cmake file to build library libVisionComponents that includes sources from subdirectories (each subdir is different component). In the main cmake file, sources and headers are listed as ComponentName/File.cpp. The library is compiled successfully, but when

Re: [CMake] Install files at absolute position?

2006-01-18 Thread Alexander Neundorf
Von: Zachary Pincus [EMAIL PROTECTED] I'm wondering if there is any good way to have CMake install a particular file at an absolute position in the filesystem (not prefixed by CMAKE_INSTALL_PREFIX) during 'make install'. There is already a bug report about it:

[CMake] Install files at absolute position?

2006-01-17 Thread Zachary Pincus
Hello again, I'm wondering if there is any good way to have CMake install a particular file at an absolute position in the filesystem (not prefixed by CMAKE_INSTALL_PREFIX) during 'make install'. It's clearly possible to send a file to any given location during the configure or build