Cross platform cmake project template. You can build this project on Linux(gcc) or Windows(MSVC)
$ ./build.sh debug      # debug build. lib name will be `libcalcd.a`
$ ./build.sh release    # release build. lib name will be `libcalc.a`
- In Visual Studio 2017, File | Open | CMakeand select CMakeLists.txt
- Select Configuration x64-Debugorx64-Relase
- Right click on CMakeLists.txt and generate CMake cache
- Right click on CMakeLists.txt and Build | All
If you already built on Linux (e.g. on WSL), generating cache perhaps failed.
If generating cache failed, please remove dist and retry.
- bin- output of binaries
- lib- output of static libraries
- dist- CMake working directory. There is CMakeCache.txt
- build.sh- Linux build script
- CMakeSettings.json- Visual Studio build setting
- calc.h,- calc.cpp- calc library
- main.cpp- binary entry point
- .vscode- VSCode debug setting on WSL (correctly speaking, this settings have no relation to this project)