Re: [CMake] Define a subfolder for SWIG project

2014-05-20 Thread Iosif Neitzke
Assuming USE_FOLDERS is set [0], does set_property( TARGET test_swig
PROPERTY FOLDER PYTHON ) work?

[0] http://www.cmake.org/cmake/help/v2.8.12/cmake.html#prop_global:USE_FOLDERS

On Fri, May 16, 2014 at 4:45 PM, Giumas giu...@yahoo.it wrote:

 Good morning,

 I am working for the first time with SWIG, I have been able to build and use
 a python module based on a C++ class.
 CMake makes a huge job to make the building very easy, but there is an issue
 I cannot figure out..

 In brief, I would like to put the SWIG project in a specific sub-folder in
 the solution (e.g. PYTHON) as I did for other projects in my MSVC solution.
 I have attempted with the classic:
 set_target_properties( test_swigPROPERTIES FOLDER PYTHON )

 but it does not work..

 Could anybody help me ?

 G.
 __
 ---

 --

 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
-- 

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


Re: [CMake] Define a subfolder for SWIG project

2014-05-20 Thread Nils Gladitz

On 05/20/2014 08:36 AM, Iosif Neitzke wrote:

Assuming USE_FOLDERS is set [0], does set_property( TARGET test_swig
PROPERTY FOLDER PYTHON ) work?


From the documentation:
 To get the name of the swig module target library, use: 
${SWIG_MODULE_${name}_REAL_NAME}


So perhaps:
set_property(TARGET ${SWIG_MODULE_test_swig_REAL_NAME} PROPERTY FOLDER 
PYTHON )


Nils
--

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