On 09/20/2013 09:10 AM, Stephen Kelly wrote:
> Brad King wrote:
>> add_library(mystatic_library STATIC foo.cpp)
>> set_property(TARGET mystatic_library PROPERTY QT_STATICPLUGIN 1)
>> target_link_libraries(mystatic_library Qt5::Core)
> 
> Yes, but I don't think that's better than
> 
>  add_library(mystatic_library STATIC foo.cpp)
>  target_compile_definitions(mystatic_library PRIVATE QT_STATICPLUGIN)
>  target_link_libraries(mystatic_library Qt5::Core)

If Qt adds some other usage requirement for static modules in the
future then the declarative property is better than a user spelling
out the specific compile definitions requirement.

-Brad
--

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

Reply via email to