This is a hard reboot of our legacy T3000 Building Automation front end, a mature project for managing the air conditioning, lighting, access control and other automation functions of commercial buildings.
With this reboot, we are moving to a CMake based build system. This simplifies the build in many ways:
- We no longer have to maintain seperate project files for different Visual Studio versions.
- Our build output does not leave any artifacts in the source (out-of-source builds).
- CMake based builds are natively supported in Visual Studio 2017 onwards.
- We should now be able to automate our builds and tests (e.g travis CI).
- CMake makefiles makes clear the interdependencies in our targets.
- CMake builds are cross platform supported. (but we do have MFC dependency)
- ...
The following gives a quick overview of how to create a build. First download the latest CMake https://cmake.org/ tool for windows. Then checkout this repository. Navigate to the folder in the visual studio developer command prompt. Then issue the following commands:
- mkdir build
- cd build
- cmake -G "Visual Studio 14 2015" ..
- cmake --build . --config Release
If you dislike command prompts, please refer to the excellet article here to do it visually (https://preshing.com/20170511/how-to-build-a-cmake-based-project/)