CMake install imported target using WIX

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

CMake install imported target using WIX

Lars 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 https://public.kitware.com/Bug/view.php?id=14311 I managed to get 'make install' to include the IMPORTED targets.


However, it seems CPack -G WIX does not include the imported executables and libraries in its msi.


There is no trace of 'app' or 'lib' in the files.wxs file produced by CPack.


I wanted to check whether this is the expected behaviour or a known issue? If this is a bug, appreciate any input on how to proceed to debug this issue.


Using CMake 3.5.2 and Windows 7


--

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 Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CMake install imported target using WIX

Nils Gladitz-2

On 02/21/2017 02:48 PM, Lars wrote:

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 https://public.kitware.com/Bug/view.php?id=14311 I managed to get 'make install' to include the IMPORTED targets.


What exactly did you take from the issue report?
What are your install() commands?

Everything installed by "make install" should also land in the package assuming what ever install logic you used honors the install time CMAKE_INSTALL_PREFIX as set up by CPack.

Nils

--

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 Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CMake install imported target using WIX

Lars 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 <[hidden email]>
Sendt: 21. februar 2017 15:33
Til: Lars; [hidden email]
Emne: Re: [CMake] CMake install imported target using WIX
 

On 02/21/2017 02:48 PM, Lars wrote:

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 https://public.kitware.com/Bug/view.php?id=14311 I managed to get 'make install' to include the IMPORTED targets.


What exactly did you take from the issue report?
What are your install() commands?

Everything installed by "make install" should also land in the package assuming what ever install logic you used honors the install time CMAKE_INSTALL_PREFIX as set up by CPack.

Nils

--

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 Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Loading...