Re: [CMake] export(TARGETS for multi-configuration

2014-01-21 Thread Ruslan Baratov
-- Message: 2 Date: Fri, 17 Jan 2014 23:46:45 +0400 From: ZZ ZZ To: cmake@cmake.org Subject: [CMake] export(TARGETS for multi-configuration Message-ID: <176711389988...@web18h.yandex.ru> Content-Type: text/plain; charset=koi8-r Hi all, Our CMakeLists.txt co

[CMake] export(TARGETS for multi-configuration

2014-01-17 Thread ZZ ZZ
Hi all, Our CMakeLists.txt contains with the following command: export(TARGETS ${OpenCVModules_TARGETS} FILE "${CMAKE_BINARY_DIR}/OpenCVModules.cmake") For release configuration it generates Relase imports set_property(TARGET opencv_legacy APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_