[CMake] What is recommended to export / import target libraries with dependencies that are also exported

2014-11-04 Thread Fabien Spindler
Hello, Consider the following case where: - I want to export/import my library named mylib - This library depends on OpenCV that is also exported According to http://www.cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html#creating-packages the CMakeLists.txt of my library is simpilar to: p

[CMake] What is recommended to export a package definition ?

2014-10-12 Thread Fabien Spindler
Hi, I want to create a config file for my package so that it can be found using find_package() In the config file, I have to define the following variables: * _FOUND * _INCLUDE_DIRS * _LIBRARIES * _DEFINITIONS I can't find any clear documentation concerning _DEFINITION. Should I export t

[CMake] How to find a work arround with CMP0026 policy

2014-07-30 Thread Fabien Spindler
Hi, I'm not able to find a good way to modify my cmake files to consider CMP0026 policy introduced in cmake 3.0.0. I have a project that create a library libfoo and FooConfig.cmake file that allows to use my library as a 3rd party. In FooConfig.cmake updated during configuration time, I need

[CMake] CTest: how to select a configuration type

2008-06-16 Thread Fabien Spindler
I'm under Windows, with Visual Studio 2003.NET and CTest 2.6 patch 0. How is it possible to select a configuration type (Debug/Release,...) with CTest so that devenv uses the requested /build option? Fabien -- Fabien Spindler, Equipe Lagadic, Irisa - Inria Campus universitaire de Bea