Re: [CMake] find_package config and install

2019-01-22 Thread Lars
name indicates. Any comments are welcome 😊 kind regards, Lars Fra: Alan W. Irwin Sendt: onsdag 23. januar 2019 04.14 Til: Lars Kopi: cmake@cmake.org Emne: Re: Sv: [CMake] find_package config and install Hi Lars: On 2019-01-22 12:05- Lars wrote: > Alan,

Re: [CMake] find_package config and install

2019-01-22 Thread Lars
perform the Install(..) command so that the necessary Qt5 targets are included in the installer (MSI and RPM). We cannot require the customer to install a 2GB Qt5 installer for a few libraries. In that context it is unclear who\when\how should perform the installation.

[CMake] find_package config and install

2019-01-21 Thread Lars
e used for this task? Qt 5.11 support config mode but does not perform any install. Does anyone know why? We are using CMake 3.13.2 kind regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers

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

[CMake] install files generator expression

2019-01-09 Thread Lars
LES ${qt5_locations} DESTINATION $<$:bin> $<$:lib> COMPONENT runtime) Appreicate any input. kind regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to

Re: [CMake] set_property imported_location_release

2018-12-21 Thread Lars
That is what I thought. Thank you. Fra: Marc CHEVRIER Sendt: fredag 21. desember 2018 15.46.18 Til: cmake@cmake.org; Lars Emne: Re: Sv: [CMake] set_property imported_location_release Yes, the most efficient way is using conditional setting. For example: if

Re: [CMake] set_property imported_location_release

2018-12-21 Thread Lars
Marc, Appreciate the quick and helpful response. In a config file that supports multiple platforms, do I need to create import_location_path variable and populate it depending on platform and 32/64 etc? Any other options? Thanks. Kind regards, Lars Fra: Marc

[CMake] set_property imported_location_release

2018-12-21 Thread Lars
y support generator expression in this context? What are we doing wrong? Appreciate any help :-) king regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMak

[CMake] Detecting compilation option and flags

2018-05-20 Thread Lars Christensen
-compiled header cmake hack[1]. It used to work OK. I guess Debug can be detected and picked up from _FLAGS_DEBUG, but I don't see a way to pick up -std=. Lars 1) https://github.com/larsch/cmake-precompiled-header/ -- Powered by www.kitware.com Please keep messages on-topic and check the CMak

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

2018-01-15 Thread Lars
erator-expression work just not using compiler as key. What does binary target mean in this context? Why does this fail? Kind regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various serv

[CMake] install common resource files

2017-06-12 Thread Lars
multiple files. Any other options? Regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake

Re: [CMake] CMake install imported target using WIX

2017-02-27 Thread Lars
Hello, Sorry for the delayed response. The issue has been resolved and was caused by incorrect component naming in cmake install(...) command. Regards, Lars Fra: Nils Gladitz Sendt: 21. februar 2017 15:33 Til: Lars; cmake@cmake.org Emne: Re: [CMake] CMake

[CMake] CMake install imported target using WIX

2017-02-21 Thread Lars
Hello, We are using the "config" mode of Find_Package that locates CompConfig.cmake which create IMPORTED targets. CMakeLists.txt Find_Package(some_comp ${some_comp_path}) CompConfig.cmake; add_executable(app IMPORTED) add_library(lib SHARED IMPORTED) This works fine and once I read ht

[CMake] VS2015 and toolset v110

2016-06-21 Thread Lars
The second example using v140 actually also fails but that is because it is trying to find boost_math_c99_v140 library which does not exists (we use v110 library). (and no, I cannot change toolset at the moment) Kind regards, Lars -- Powered by www

[CMake] cmake env - no command given

2016-02-08 Thread Lars
"PATH=C:\temp" calc "C:\Program Files (x86)\CMake\bin\cmake.exe" -E env "PATH=C:\temp\" calc regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/

Re: [CMake] include_external_msproject

2016-01-28 Thread Lars
project with Configurations "Debug", "RelWithDebInfo" and "Release" and Platform "x86" is a workaround. Obviously it would be ideal if this could be controlled using cmake. Appreciate any input. Regards, Lars > From: iosif.neitzke+cm...@gmail.com >

[CMake] include_external_msproject

2016-01-26 Thread Lars
Appreciate some help understanding include_external_msproject. Using Windows 7 and cmake 3.3 This is what has been done so far, 1. Opened Visual Studio 2012 and created a new project (Windows Forms Application) and saved it under c:\temp\test. 2. Used the following to an cmake; include_ext

[CMake] add_custom_command scope

2016-01-19 Thread Lars
like this; ADD_CUSTOM_COMMAND( TARGET app POST_BUILD COMMAND tbd.exe) Appreciate any input. Kind regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offe

[CMake] cmake.exe build type from cmd

2015-10-21 Thread Lars
Hello, Using CMake 3.3 on Windows 7 platform with VS2012. To build software I run; cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "Visual Studio 11" /path/to/source msbuild /m /p:Configuration=RelWithDebInfo INSTALL.wcxproj To help developers I would like to create a couple of scripts. Does cmak

Re: [CMake] Install targets and component

2015-08-11 Thread Lars
Thank you Nils, that solved the issue. Cannot believe I missed that in the documentation. Regards, Lars > Date: Tue, 11 Aug 2015 09:41:22 +0200 > From: nilsglad...@gmail.com > To: laasu...@hotmail.com; cmake@cmake.org > Subject: Re: [CMake] Install targets and component > >

[CMake] Install targets and component

2015-08-11 Thread Lars
P) By removing the following section the target is associated with COMP_APP as expected. LIBRARY DESTINATION "${LIB_PATH}" We are now using CMake 3.3. This worked great with CMake 2.8.12. Any ideas? kind regards, Lars -- Powered by www.ki

[CMake] Target_link_libraries imported library

2015-05-13 Thread Lars
Hello, We have an internal software product foo which is exported. A typical component: add_library(foo_library SHARED ...) target_link_libraries(foo_library foo_common foo_comp ${Boost_LIBRARIES}) When building the exported package a file name FooDepends-release.cmake is produced wh

[CMake] ExternalData_Add_Test get referenced files

2015-01-20 Thread Lars Bilke
stored in some test properties? Thanks! Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake

Re: [CMake] ADD_CUSTOM_COMMAND Application dependency

2014-11-19 Thread Lars
Hello again, There can only be one working directory and the two lib's are located in different dirs. regards, Lars Date: Wed, 19 Nov 2014 19:21:54 +0100 Subject: Re: [CMake] ADD_CUSTOM_COMMAND Application dependency From: angeliki.chrysoc...@gmail.com To: laasu...@hotmail.com CC:

Re: [CMake] ADD_CUSTOM_COMMAND Application dependency

2014-11-19 Thread Lars
d possibly set the working_directory to the path of lib1 and use the absolute path of the "App" for the command. That would probably work but not with multiple dependencies. Your second example might do the job but wont be accepted as a solution in our company. regards, Lars Date: Wed,

[CMake] ADD_CUSTOM_COMMAND Application dependency

2014-11-19 Thread Lars
The below example build "App" and copies it to EXECUTABLE_OUTPUT_PATH. ADD_EXECUTABLE(App ${source}) TARGET_LINK_LIBRARIES(App ${lib1} ${lib2}) INSTALL(TARGETS App ..) The top level CMakeLists.txt has install directives for lib1 and lib2 INSTALL(FILES ${lib1}/bin/lib1.dll DESTINATION ...) INSTA

Re: [CMake] CPack installation directory

2014-03-04 Thread Lars
e are considering this kind of solution. However we then lose the ability to remove these files on uninstall. We also feel this is mixing application development with deployment. regards, Lars -- Powered by www.kitware.com Please keep messages on

Re: [CMake] CPack installation directory

2014-03-04 Thread Lars
> Date: Fri, 28 Feb 2014 15:00:04 +0100 > From: nilsglad...@gmail.com > To: laasu...@hotmail.com; cmake@cmake.org > Subject: Re: [CMake] CPack installation directory > > On 02/28/2014 02:29 PM, Lars wrote: > > > How can I configure the wix generator to produce a msi w

[CMake] CPack installation directory

2014-02-28 Thread Lars
uot;res") INCLUDE(CPack) - How can I configure the wix generator to produce a msi which by default install files to c:\tbd ? kind regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://ww

[CMake] cmake release and process

2014-02-12 Thread Lars
trying to understand. kind regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information

[CMake] Method to get effective include_directories and compile_definitions

2014-02-10 Thread Lars Christensen
trying to generate PC-Lint configuration files and need the definitions and include directories. The wiki solution no longer works with interface include_directories and compile_definitions. Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmak

Re: [CMake] depend.make

2013-12-16 Thread Lars
That sounds like a decent solution from my point of view. I will create an issue for this topic. Regards, Lars Date: Fri, 13 Dec 2013 10:53:49 +0100 From: nilsglad...@gmail.com To: laasu...@hotmail.com; bill.hoff...@kitware.com; cmake@cmake.org Subject: Re: [CMake] depend.make

Re: [CMake] depend.make

2013-12-13 Thread Lars
difficult to remove qt dependency like #include . How do you view adding a feature that allow applying regex to the absolute path? Secondly, the documentation of include_regular_expression should probably mention something about the target string (relative path, not absolute). Regards, Lars > D

Re: [CMake] depend.make

2013-12-12 Thread Lars
files. I am guessing a huge depent.make file would affect at least dependency scanning. Obviously I do not know how much this affect performance. Will take a look at ninja. Any other suggestions? Regards,Lars > Date: Thu, 12 Dec 2013 11:14:29 -0500 > From: bill.hoff...@kitware.com >

Re: [CMake] depend.make

2013-12-12 Thread Lars
the same thing (this is in 2009). Can anyone confirm this is still the case? How can we filter out boost from depend.make? Using include_regular_expression only allows files filtering and that does not really help in this case. Regards, Lars > From: marco.clemen...@cern.ch > To:

Re: [CMake] depend.make

2013-12-12 Thread Lars
this case. Regards, Lars > From: marco.clemen...@cern.ch > To: cmake@cmake.org > CC: laasu...@hotmail.com; nilsglad...@gmail.com > Subject: Re: [CMake] depend.make > Date: Thu, 12 Dec 2013 12:03:06 +0100 > > Hi, > > I cannot find it anymore in the documentation ,

Re: [CMake] depend.make

2013-12-12 Thread Lars
iles included in the depend.make? Regards, Lars Date: Wed, 11 Dec 2013 16:08:28 +0100 From: nilsglad...@gmail.com To: laasu...@hotmail.com; cmake@cmake.org Subject: Re: [CMake] depend.make On 11.12.2013 12:53, Lars wrote: Here is the source c

[CMake] depend.make

2013-12-11 Thread Lars
This test has been performed on Windows 7 SP1 (64bit) and using CMake 2.8.12.1 and VS2005 SP1. Here is the source code used (which does not use the Boost library). #include int main(int argc, char **argv) { std::cout << "Hello world" << std::endl; return 0; } Here is the CMakeLists.txt

Re: [CMake] command line too long when compiling CUDA code with WindowsSDK7.1_64bit

2013-11-22 Thread Lars Friedrich Lars
Hi Cory,   works like a charm! (also without resetting COMPILE_DEFINITIONS)   Thanks a lot!   Lars   Gesendet: Freitag, 22. November 2013 um 14:11 Uhr Von: "Cory Quammen" An: "Lars Friedrich Lars" Cc: cmake@cmake.org Betreff: Re: [CMake] command line too long when

[CMake] command line too long when compiling CUDA code with WindowsSDK7.1_64bit

2013-11-22 Thread Lars Friedrich Lars
luded directories (which are automatically derived by CMake) are definitely not required for compiling this library - cross-checked this on the command line manually.   Is it possible to control (manipulate?) the generated includes in this call by invoking the one other cmake macro? Is there s

Re: [CMake] CPack install dirs pr component

2013-11-18 Thread Lars Lars
Date: Mon, 18 Nov 2013 10:21:57 +0100 From: nilsglad...@gmail.com To: laasu...@hotmail.com; cmake@cmake.org Subject: Re: [CMake] CPack install dirs pr component On 11/18/2013 09:48 AM, Lars Lars wrote: How can I specify different install dir

Re: [CMake] Xml modification

2013-11-18 Thread Lars Lars
Date: Mon, 18 Nov 2013 10:27:26 +0100 From: nilsglad...@gmail.com To: laasu...@hotmail.com; cmake@cmake.org Subject: Re: [CMake] Xml modification On 11/18/2013 09:58 AM, Lars Lars wrote: Does cmake support xml modification? We would like

[CMake] Xml modification

2013-11-18 Thread Lars Lars
Does cmake support xml modification? We would like to update a number of xml configuration files with for instance version information. This information is only available at build time. -- Powered by www.kitware.com Please keep messages on-topic and check

[CMake] CPack install dirs pr component

2013-11-18 Thread Lars Lars
How can I specify different install dir prefix for two components using CPack and Wix generator? The current setup installs runtime files to C:\Program Files\MyCompany\bin and data to C:\Program Files\MyCompany\data. We would like to place the data files in for instance c:\data. The setup has

[CMake] Qt4 QT_INSTALL_LIBS

2013-11-14 Thread Lars Lars
nal behind querying qmake for the the location of the libs? Regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake comm

Re: [CMake] CPack, Wix using util:XmlFile

2013-11-11 Thread Lars Lars
Date: Sun, 10 Nov 2013 21:20:47 +0100 From: nilsglad...@gmail.com To: laasu...@hotmail.com; cmake@cmake.org Subject: Re: [CMake] CPack, Wix using util:XmlFile On 10.11.2013 17:46, Lars Lars wrote: Just a follow up question

Re: [CMake] CPack, Wix using util:XmlFile

2013-11-10 Thread Lars Lars
Thank you for your reply. Just a follow up question, how does CPack invoke candle and light? On Windows 7, using Process Monitor I do see these executables being spawned into a separate process when doing cpack -G "WIX". Lars Date: Fri, 8 Nov 2013 09:40:37 +0100 From: nilsglad...@gm

[CMake] CPack, Wix using util:XmlFile

2013-11-08 Thread Lars Lars
f a way to add this option to the existing version of cmake\cpack? Does Cmake provide any utility to modify an xml file? Regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki

Re: [CMake] can start menu content depend on what components selected for install

2013-10-04 Thread West Lars-Gunnar
-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of West Lars-Gunnar Sent: den 30 september 2013 10:54 To: cmake@cmake.org Subject: [CMake] can start menu content depend on what components selected for install I can't figure out how to generate a start menu that reflects my selecti

[CMake] can start menu content depend on what components selected for install

2013-09-30 Thread West Lars-Gunnar
I can't figure out how to generate a start menu that reflects my selection of installed components. This is for installation on windows using cmake, cpack and nsis. Is it possible to do? Regards Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] how generate correct start menu shortcuts for selectable programs in installer

2013-09-24 Thread West Lars-Gunnar
) set ( CPACK_COMPONENTS_ALL compo1 compo2 compo3 ) include (CPack) -- Is it possible to do this? Regards Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitwa

[CMake] find_package

2013-09-05 Thread Lars Lars
Using Latest version of CMake on Windows 7 and Redhat 6 Running the below code on both platforms produce slightly different content in QT_LIBRARIES. FIND_PACKAGE(Qt4 4.7.1 COMPONENTS QtCore QtGui) IF (QT4_FOUND) MESSAGE(STATUS "QT_LIBRARIES: ${QT_LIBRARIES}" ENDIF() On Windows I get; "Op

[CMake] cpack component

2013-09-02 Thread Lars Lars
Hello, We are using CPack (WIX generator) to create an installer. This works fine but with one slight problem that the installer contains a component that I did not expect. The main CMakeList.txt file includes; SET(CPACK_COMPONENTS_ALL RUNTIME) In a sub CMakeList.txt file I have the following lin

[CMake] find_package and install

2013-08-29 Thread Lars Lars
Hello, I have the following configuration; FIND_PACKAGE(Qt4 4.7.1 COMPONENTS QtCore) IF (Qt4_FOUND) INCLUDE(${QT_USE_FILE}) MESSAGE(STATUS "QT_LIBRARIES:${QT_LIBRARIES}") ENDIF() # setup header and source files ADD_EXECUTABLE(TBD ${_SOURCES} ${_HEADERS}) TARGET_LINK_LIBRARI

Re: [CMake] Support for custom wix template

2013-08-26 Thread Lars Lars
> Date: Mon, 26 Aug 2013 13:29:22 +0200 > Subject: Re: [CMake] Support for custom wix template > From: eric.noul...@gmail.com > To: laasu...@hotmail.com > CC: cmake@cmake.org > > 2013/8/26 Lars Lars : > > Hello, > > > > I would like to know if the featur

[CMake] Support for custom wix template

2013-08-26 Thread Lars Lars
lease date for version 2.8.12. That is obviously not going to happen. What is the current release date? Thank you. Regards, Lars -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FA

[CMake] find_package components required or not

2013-08-15 Thread Lars Lars
n or after the COMPONENTS option if no REQUIRED option is given." When using find_package and the "REQUIRED" keyword, are all components required? When using find_package and the "COMPONENTS" keywords, are all components required? It would be nice if the d

[CMake] Custom target/command dependencies with Visual Studio

2012-02-23 Thread Lars Christensen
I have this simple CMakeLists.txt: add_custom_target(deptest ALL DEPENDS files.out) add_custom_command(OUTPUT foo.x COMMAND touch foo.x DEPENDS foo.cpp) add_custom_command(OUTPUT bar.x COMMAND false DEPENDS bar.cpp) add_custom_command(OUTPUT files.out COMMAND touch files.out DEPENDS foo.x bar.x)

[CMake] Remove a library from linking which was added with target_link_libraries

2011-08-24 Thread Lars Bilke
? Thanks, Lars. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to

[CMake] Outputting targets to subdirectories

2010-06-04 Thread Lars Sønderby Jessen
n.dll ? - Lars ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this li

Re: [CMake] Unable to compile a simple test program

2007-06-15 Thread Lars Nygard
eciate any help with this. thanks in advance, lars Determining if the C compiler works failed with the following output: Microsoft (R) Visual C++ Express Edition Version 8.0.50727.42. Copyright (C) Microsoft Corp 1984-2005. All rights reserved. -- Build started: Project: ZERO_CHECK, Configurati

Re: [CMake] Unable to compile a simple test program

2007-06-15 Thread Lars Nygard
Hi David, Thaks for your email. I tried what you said but I still get the same error. Where can I download cmake 2.4.7? The latest version on the site is 2.4.6... greets, Lars Nygard - Original Message From: David Cole <[EMAIL PROTECTED]> To: Lars Nygard <[EMAIL PROTECTED]&g

[CMake] Unable to compile a simple test program

2007-06-15 Thread Lars Nygard
reciate any help. regards, Lars Nygard Im using Visual Studio .NET 2003, Window XP service pack2 (with all latest updates) and Cmake 2.4 patch 6 This is part of the error file from cmake. ** Determining if the C compi

[CMake] Use of MACOSX_BUNDLE??

2006-04-11 Thread Lars Pechan
n? Or do I have to do all of thi by myself using skeleton files and writing CMake code to set up directories and copy skeleton files across to those? Thanks for any hints, /Lars ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Use of -fPIC when linking executables

2006-03-14 Thread Lars Nordlund
other platforms too. > Is it breaking something for you? No, no problem seen. I was just curious. Thanks for the reply, Lars Nordlund ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Use of -fPIC when linking executables

2006-03-13 Thread Lars Nordlund
ut from verbose make: /usr/pkg/bin/cmake -H/home/lars/tmp/hello -B/home/lars/tmp/hello/build --check-build-system CMakeFiles/Makefile.cmake 0 make -f CMakeFiles/Makefile2 all make -f CMakeFiles/foo.dir/build.make CMakeFiles/foo.dir/depend Scanning dependencies of target foo /usr/pkg/bin/cmake -E