CMakeでビルドオプションを指定する方法
#Windows
#CMake
やりたいこと
外部バッチでビルドオプションを指定する
CMakeLists.txtは変更しない
実装
code:build.bat
IF %BUILD_GTEST%==[] SET BUILD_GTEST=ON
code:CMakeList.txt
if($ENV{BUILD_GTEST})
add_subdirectory(tests)
endif()