[CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake
Ravi Raman
ravi.raman at Xoriant.Com
Wed Jul 30 08:57:56 EDT 2014
Hi David,
Can you refer to the query in the mails below (2 points are mentioned). Please let us know your comments when you get time.
Thanks & Regards
Ravi Raman
Xoriant Solutions Pvt. Ltd
4th Floor, Winchester, Hiranandani Business Park, Powai, Mumbai 400076, INDIA.
Tel: +91 22 30511000,9930100026 Extn: 2144 Voip No. 4088344495/96/97/98 Voip Extn:1178| Fax: +91 22 30511111
ravi.raman at xoriant.com<mailto:ram.singh at xoriant.com>| http://www.xoriant.com<http://www.xoriant.com/>
From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Ravi Raman
Sent: Wednesday, July 30, 2014 4:13 PM
To: David Cole
Cc: cmake at cmake.org
Subject: Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake
Hi David,
Note that the targets file name is target1.targets.
So, please read it as
<Import Project="target1.targets" />
Thanks & Regards
Ravi Raman
Xoriant Solutions Pvt. Ltd
4th Floor, Winchester, Hiranandani Business Park, Powai, Mumbai 400076, INDIA.
Tel: +91 22 30511000,9930100026 Extn: 2144 Voip No. 4088344495/96/97/98 Voip Extn:1178| Fax: +91 22 30511111
ravi.raman at xoriant.com<mailto:ram.singh at xoriant.com>| http://www.xoriant.com<http://www.xoriant.com/>
From: Ravi Raman
Sent: Wednesday, July 30, 2014 4:06 PM
To: 'David Cole'
Cc: cmake at cmake.org
Subject: RE: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake
Hi David,
Thanks for the response. Sorry to use the cmake pre-defined word "test". My actual query was not this. I just used "test" as an example without realizing that it is actually a cmake pre-defined word.
So, my actual query is as follows (2 points below):
1. In Microsoft Visual Studio project file module1.vcxproj, the targets file (target1.targets) gets included as follows:
<Import Project="module1.targets" />
In target1.targets, there are multiple entries of various targets as follows:
<Target Name="Target_1" ......>
<....>
</Target>
<Target Name="Target_2" ......>
<....>
</Target>
To achieve the same thing in cmake, in the CMakeLists.txt file of module “module1” we are using the following command:
add_custom_target() with the appropriate target names for the above i.e. we make 2 calls to add_custom_target() with target names Target_1 and Target_2
Is this the correct way to convert Visual Studio .targets file to cmake OR is there any other way ?
2. Also, if we take the above approach then for each call to add_custom_target(), a Visual Studio project file gets created under the module "module1". So, in this case there will be 2 vcxproject files created i.e. Target_1.vcxproj and Target_2.vcxproj created for module "module1".
Please confirm if this is the expected behavior in cmake.
Thanks & Regards
Ravi Raman
Xoriant Solutions Pvt. Ltd
4th Floor, Winchester, Hiranandani Business Park, Powai, Mumbai 400076, INDIA.
Tel: +91 22 30511000,9930100026 Extn: 2144 Voip No. 4088344495/96/97/98 Voip Extn:1178| Fax: +91 22 30511111
ravi.raman at xoriant.com| http://www.xoriant.com
-----Original Message-----
From: David Cole [mailto:dlrdave at aol.com]
Sent: Wednesday, July 30, 2014 3:37 PM
To: Ravi Raman; cmake at cmake.org
Subject: Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake
The problem as reported, is that you're trying to use add_custom_target
with a target named "test" -- but you can't do that with CMake because
"test" is a built-in "well-known" predefined target name.
Other so-called "well-known" target names include "all" "install"
"package" and "package_source". And there may be others. If I can find
a definitive documented list, I'll forward it...
You can use any other name you like, but you should avoid the
pre-defined target names that CMake already uses.
HTH,
David C.
-----Original Message-----
From: Ravi Raman <ravi.raman at Xoriant.Com>
To: cmake <cmake at cmake.org>
Sent: Wed, Jul 30, 2014 12:35 am
Subject: [CMake] Cmake issue regarding conversion of existing Visual
Studio .targets files to cmake
Hi all,
We have reported an issue. It is regarding conversion of existing
Visual Studio .targets files to cmake.
The link for the reported issues is as follows.
http://www.cmake.org/Bug/view.php?id=15044
Kindly let us know if this can be done in cmake.
Thanks & Regards
Ravi Raman
Xoriant Solutions Pvt. Ltd
4th Floor, Winchester, Hiranandani Business Park, Powai, Mumbai 400076,
INDIA.
Tel: +91 22 30511000,9930100026 Extn: 2144 Voip No. 4088344495/96/97/98
Voip Extn:1178| Fax: +91 22 30511111
ravi.raman at xoriant.com| http://www.xoriant.com
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For
more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140730/c33eae01/attachment-0001.html>
More information about the CMake
mailing list