MantisBT - CMake
View Issue Details
0015043CMakeCMakepublic2014-07-28 11:202016-06-10 14:31
Ravi Raman 
Kitware Robot 
highfeaturealways
closedmoved 
Windows
CMake 3.0 
 
0015043: How to convert Visual Studio .props file into cmake
Hello,

 We are using CMake 3.0 on Windows. Our main objective is to convert Microsoft Visual Studio built solution to CMake 3.0 solution.
 In the process of doing so, we have come across many Visual Studio property files (.props) which get included in the Visual Studio project files (.vcxproj) files.

 For example in a Visual Studio project file , the Property file (test.props) gets included as follows:

   <ImportGroup Label="PropertySheets">
     <Import Project="$(TestCfg)\test.props" />
   </ImportGroup>

 To achieve the same thing, in the CMakeLists file we are using the following command:

 set_target_properties(testproj PROPERTIES VS_PROPERTY_SHEETS "${TestCfg}/test.props")

 Note that we have set TestCfg appropriately in one of the .cmake files that we include in our CMakeLists.txt

 The cmake build is successful and the cmake VCX project also gets created. But that vcx project does not contain the entry of the test.props file.

 Please let us know what we are missing or doing wrong.
 Also, is there any other way to include .props files in cmake.

 Any help in this regard would be appreciated.
No tags attached.
related to 0015044closed Kitware Robot How to convert existing Visual Studio .targets file to cmake 
Issue History
2014-07-28 11:20Ravi RamanNew Issue
2014-07-28 11:27Brad KingNote Added: 0036472
2014-07-28 11:27Brad KingSeveritymajor => feature
2014-07-28 11:27Brad KingStatusnew => backlog
2014-07-28 11:42Brad KingRelationship addedrelated to 0015044
2016-06-10 14:29Kitware RobotNote Added: 0042593
2016-06-10 14:29Kitware RobotStatusbacklog => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0036472)
Brad King   
2014-07-28 11:27   
AFAIK we have no feature to add custom ImportGroup elements or property sheets entries. I'm not familiar with a "VS_PROPERTY_SHEETS" target property. Where did you see that?
(0042593)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.