MantisBT - CMake
View Issue Details
0015044CMakeCMakepublic2014-07-28 11:322016-06-10 14:31
Ravi Raman 
Kitware Robot 
highfeaturealways
closedmoved 
Windows
CMake 3.0 
 
0015044: How to convert existing Visual Studio .targets file to 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 targets files (files with extension .targets) which get included in the Visual Studio project files (.vcxproj) files.

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

<Import Project="test.targets" />

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

add_custom_targets() with the appropriate target name "test"

Please let us know if this is the correct way to convert existing Visual Studio .targets files to cmake ?
If this is incorrect, please let us know how to achieve it with a simple example.

Thanks.
No tags attached.
related to 0015043closed Kitware Robot How to convert Visual Studio .props file into cmake 
Issue History
2014-07-28 11:32Ravi RamanNew Issue
2014-07-28 11:42Brad KingRelationship addedrelated to 0015043
2014-07-28 11:42Brad KingSeveritymajor => feature
2014-07-28 11:42Brad KingStatusnew => backlog
2014-07-28 11:45Brad KingNote Added: 0036473
2014-07-28 11:57Ravi RamanNote Added: 0036474
2016-06-10 14:29Kitware RobotNote Added: 0042594
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
(0036473)
Brad King   
2014-07-28 11:45   
You might try asking on the mailing list to see if others have done this:

 http://www.cmake.org/mailman/listinfo/cmake [^]
(0036474)
Ravi Raman   
2014-07-28 11:57   
Thanks Brad. Sent mail on the mailing list regarding this.
(0042594)
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.