[CMake] MSVC Qt Integration

Thomas Burdick thomas.burdick at gmail.com
Thu Jul 10 11:48:43 EDT 2008


I'm trying to get Qt integration to work in visual studio using cmake to
generate the project and solution files.

So far I've gotten part of the puzzle together using set_target_properties
as described in the documentation to set the VS_KEYWORD.

There is another piece though, in the solution file itself in Qt integration
based projects there is something like GlobalSection(Qt) as shown below. How
would I go about doing this in CMake so I can once again have Qt integration
working?

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test",
"test\test.vcproj", "{6D8CFDDB-B43B-4DA1-935B-85406F4867FC}"
    GlobalSection(Qt) = preSolution
        Integration = True
    EndGlobalSection
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Win32 = Debug|Win32
        Release|Win32 = Release|Win32
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {6D8CFDDB-B43B-4DA1-935B-85406F4867FC}.Debug|Win32.ActiveCfg =
Debug|Win32
        {6D8CFDDB-B43B-4DA1-935B-85406F4867FC}.Debug|Win32.Build.0 =
Debug|Win32
        {6D8CFDDB-B43B-4DA1-935B-85406F4867FC}.Release|Win32.ActiveCfg =
Release|Win32
        {6D8CFDDB-B43B-4DA1-935B-85406F4867FC}.Release|Win32.Build.0 =
Release|Win32
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080710/4027e91f/attachment-0001.htm>


More information about the CMake mailing list