On Tuesday 29 November 2011, Stephen Kelly wrote:
> Alexander Neundorf wrote:
> >> I can't generate the files. I'm asking people with windows and mac
> >> setups to generate them and post them for review. I don't have those
> >> setups.
> >
> > Just the ones for Linux would already help :-)
>
> I managed to get generated files for windows and mac through some IRC
> puppeteering, so I've attached them here now.
>
> Thanks,
I looked through the QtCore files.
Some things:
if (NOT _Qt5Core_target)
set(_Qt5Core_target 1)
add_library(Qt5Core SHARED IMPORTED)
if (NOT "" STREQUAL "")
set_property(TARGET Qt5Core PROPERTY FRAMEWORK 1)
endif()
endif()
I think you can simply do:
if(NOT TARGET Qt5Core)
add_library(Qt5Core SHARED IMPORTED)
if (NOT "" STREQUAL "")
set_property(TARGET Qt5Core PROPERTY FRAMEWORK 1)
endif()
endif()
Can this also handle already static builds of Qt ?
Why do you have an if() around including Qt5CoreMacros.cmake and
Qt5CoreConfigExtras.cmake ?
Alex
--
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 subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers