Re: [CMake] How to produce a -config.cmake file

2018-09-27 Thread Dorier, Matthieu
Thanks, those pointers helped a lot!


Matthieu


From: Thompson, KT 
Sent: Thursday, September 27, 2018 3:30:33 PM
To: Dorier, Matthieu; cmake@cmake.org
Subject: RE: How to produce a -config.cmake file


Matthieu,



I think are asking about the CMakePackageConfigHelpers CMake module 
(https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html) 
that defines the macro ‘configure_package_config_file’.



You can probably find several tutorials or examples by searching github or 
stackoverflow, etc. for ‘CMakePackageConfigHelpers‘.  It is also covered in 
some detail in the e-book “Professional CMake” by Craig Scott (requires a 
purchase).



-kt



From: CMake  On Behalf Of Dorier, Matthieu
Sent: Thursday, September 27, 2018 2:42 AM
To: cmake@cmake.org
Subject: [CMake] How to produce a -config.cmake file



Hi,



I'm using cmake to build a library (damaris). Once installed, I would like 
users to be able to find it and its dependencies using find_package(damaris). 
If I understand correctly, the way to do that is to have cmake create and 
install a "damaris-config.cmake" file.



Is there a tutorial somewhere on how to do that?



Here is some more information:

the library depends on

- Boost (using the default FindBoost.cmake installed with cmake)

- XercesC (using a custom FindXercesC.cmake located in my source tree)

- XSD (using a custom FindXSD.cmake as well)

Additionally, it may have been built with the following optional dependencies:

- CppUnit (using a custom FindCppUnit.cmake)

- HDF5 (using the default FindHDF5.cmake shipped with cmake)

- VisIt (using a custom FindVisIt.cmake)

- ParaView (relying on the ParaViewConfig.cmake produced when installing 
ParaView).



Thanks,



Matthieu
-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] How to produce a -config.cmake file

2018-09-27 Thread Thompson, KT via CMake
Matthieu,

I think are asking about the CMakePackageConfigHelpers CMake module 
(https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html) 
that defines the macro 'configure_package_config_file'.

You can probably find several tutorials or examples by searching github or 
stackoverflow, etc. for 'CMakePackageConfigHelpers'.  It is also covered in 
some detail in the e-book "Professional CMake" by Craig Scott (requires a 
purchase).

-kt

From: CMake  On Behalf Of Dorier, Matthieu
Sent: Thursday, September 27, 2018 2:42 AM
To: cmake@cmake.org
Subject: [CMake] How to produce a -config.cmake file


Hi,



I'm using cmake to build a library (damaris). Once installed, I would like 
users to be able to find it and its dependencies using find_package(damaris). 
If I understand correctly, the way to do that is to have cmake create and 
install a "damaris-config.cmake" file.



Is there a tutorial somewhere on how to do that?



Here is some more information:

the library depends on

- Boost (using the default FindBoost.cmake installed with cmake)

- XercesC (using a custom FindXercesC.cmake located in my source tree)

- XSD (using a custom FindXSD.cmake as well)

Additionally, it may have been built with the following optional dependencies:

- CppUnit (using a custom FindCppUnit.cmake)

- HDF5 (using the default FindHDF5.cmake shipped with cmake)

- VisIt (using a custom FindVisIt.cmake)

- ParaView (relying on the ParaViewConfig.cmake produced when installing 
ParaView).



Thanks,



Matthieu
-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] How to produce a -config.cmake file

2018-09-27 Thread Dorier, Matthieu
Hi,


I'm using cmake to build a library (damaris). Once installed, I would like 
users to be able to find it and its dependencies using find_package(damaris). 
If I understand correctly, the way to do that is to have cmake create and 
install a "damaris-config.cmake" file.


Is there a tutorial somewhere on how to do that?


Here is some more information:

the library depends on

- Boost (using the default FindBoost.cmake installed with cmake)

- XercesC (using a custom FindXercesC.cmake located in my source tree)

- XSD (using a custom FindXSD.cmake as well)

Additionally, it may have been built with the following optional dependencies:

- CppUnit (using a custom FindCppUnit.cmake)

- HDF5 (using the default FindHDF5.cmake shipped with cmake)

- VisIt (using a custom FindVisIt.cmake)

- ParaView (relying on the ParaViewConfig.cmake produced when installing 
ParaView).


Thanks,


Matthieu
-- 

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:
https://cmake.org/mailman/listinfo/cmake