Header only modern C++ wrapper for physfs
cmake -H. -BBuild
Auto detect everything.
If you like to set a implicit compiler set the variable CXX=${COMPILER}, for example COMPILER could be gcc, clang and so on.
Auto detect in Windows usually generate a Visual Studio project since msbuild require it, but in OSX does not generate and XCode project, since is not required for compiling using XCode clang.
Specify build type debug/release
# generate a debug project
cmake -H. -BBuild -DCMAKE_BUILD_TYPE=Debug
# generate a release project
cmake -H. -BBuild -DCMAKE_BUILD_TYPE=Release
From the Build folder
# build the default build type (in multi build types usually debug)
cmake --build .
# build a specific build type
cmake --build . --config Release
From the Build folder
# run all test using the default build type
ctest -V
# run all test in Release build type
ctest -V -C Release