[CMake] Define a subfolder for SWIG project

Nils Gladitz nilsgladitz at gmail.com
Tue May 20 09:23:28 EDT 2014


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


More information about the CMake mailing list