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 -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 14 2015" ..
- cmake --build . --config Release
Once the build completes, you will find the T3000 executable in build\bin\Release folder.
Notes
- If you want a Debug build, just substitute Release with Debug in the last two commands. Results would then be in build\bin\Debug folder.
- If you dislike command prompts, please refer here Building through CMake GUI