I am currently using CMake version 2.8.11 to generate a Visual Studio 2010 
solution, containing over 50 c++ projects, on a Windows 7 (x64) development 
machine.  All of these projects currently either generate windows executable 
files (.exe's) or windows libraries (.dll's) from c++ code.  What I am looking 
to do is to add a new project that just calls some windows batch scripts to 
perform it's tasks.  After a number of the projects have been built, there are 
a number of archive files that we want to generate through various batch 
scripts.  I would like to try and find a way to add a project in Visual Studio 
that can be called to run these batch scripts once the other projects have been 
built.  Visual Studio 2010 seems to support a c++ makefile project type which 
can be used to call various commands, such as a batch script, to perform the 
build/rebuild/clean operations.  In looking through the CMake Documentation for 
2.8.11 (found here: http://cmake.org/cmake/help/v2.8.11/cmake.html) and also 
through the CMake Wiki Page (found here: http://www.cmake.org/Wiki/CMake), I 
wasn't readily able to discern whether it was possible to create CMakeLists.txt 
file that would generate a project like this for Visual Studio 2010.

So far, here are the things that I have tried in determining if this is even 
possible:

* I tried to search on it for Google.  I did not run across anyone else posting 
a question or solution similar to this (mostly as I am guessing that this is a 
not a common thing to try and do with CMake).
* Using the Visual Studio Project Template Generator, I created a test project 
that called this batch file.  On the wiki, I had seen that there were a couple 
of projects that were supposed to be able to allow you to convert a .vcxproj 
into a valid CMakeLists.txt file. Unfortunately, it seems like most of the 
links are no longer valid or they do not support converting .vcxproj files, 
just .vcproj files.

So, I was wondering if anyone on this mailing list has tried to do something 
like this before?  If you have, I was wondering if you might be able to provide 
a very simple CMakeLists.txt example for how you do this? Also, if you have any 
other suggestions for things to try, I would greatly appreciate those as well.

Thanks,
Jason



________________________________

This transmission may contain information that is privileged, confidential, 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
strictly prohibited. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format.
-- 

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://www.cmake.org/mailman/listinfo/cmake

Reply via email to