c# - Integrate non-C++ subprojects into CMake project -


i'm having bigger cmake project lot of subprojects. subprojects written in c++, no problem integrate them via add_subdirectory. there parts of project written in c# , python. both of them use visual studio solutions build them.

currently we're building cmake-stuff @ first, solutions afterwards. copy created binaries respective directories in cmake install directory. lot more practical if build cmake.

myproject | |--> cmakelists.txt (includes subprojects) | |--> suba (c++) |-----> cmakelists.txt | |--> subb (c++) |-----> cmakelists.txt | |--> subc (c#) |-----> subc.sln | |--> subd (python) |-----> subd.sln 

i integrate them directly cmake environment cannot find best way that.

is there way integrate non-c++ subprojects cmake project? there best practices case?

note: python solution calls script-commands convert executable. no need use solution directly in here, done via call external batch script or that.

i did same in 1 of project. have big solution many c++ projects , 2 c# projects.

i used include_external_msproject.

in myproj/cmakelists.txt:

cmake_minimum_required (version 2.6)  project (myproj)  include_external_msproject( my_proj path_to_myproj/myproj.csproj type fae04ec0-301f-11d3-bf4b-00c04f79efbc ) 

and in main /cmakelists.txt:

add_subdirectory( "myproj/" ) 

i don't know if can use same python project...


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -