1 2 3 4 5 6 7 8
enable_language(CXX) set(CMAKE_VS_GLOBALS "DefaultLanguage=en-US" "MinimumVisualStudioVersion=14.0" ) add_library(foo foo.cpp)