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 binarieslib- output of static librariesdist- CMake working directory. There is CMakeCache.txtbuild.sh- Linux build scriptCMakeSettings.json- Visual Studio build settingcalc.h,calc.cpp- calc librarymain.cpp- binary entry point.vscode- VSCode debug setting on WSL (correctly speaking, this settings have no relation to this project)