Creating C# and C++/CLR projects in the same solution using CMake (CMake targeting visual studio)
问题 I want to create a solution in MSVC using CMake that has two projects (in CMake vocabulary one C# executive and one C++/CLR library). How can I do this? All examples that I found are about one type of project in a CMake (all C++ or C#). To clarify: If I want to create a C++/CLR project using CMake, I can write code like this: cmake_minimum_required (VERSION 3.5) project (TestCppClr) if (NOT MSVC) message(FATAL_ERROR "This CMake files only wirks with MSVC.") endif(NOT MSVC) ADD_EXECUTABLE