Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
https://github.com/Redhacker1/cm... Coppercube by default comes distributed with an XCode Project and both Visual Studio 17 and Visual Studio 22 projects. I am here to entertain another, CMake. CMake is a build script that can be used as a project file in modern Visual Studio; it can also be treated as a script to generate *other* project and build files. This includes almost any version of Visual Studio (All the way back to VS6) (bringing back very old versions), GCC, Borland, MinGW, NMake, and Watcom makefiles. Ninja, Code::Blocks, and CodeLite. CLion, the JetBrains IDE for C and C++, has native support for CMake, and that is my preferred IDE. This is a good first step to porting to other platforms. It is consequently also a good step towards supporting non-Visual Studio setups in Windows, for those who are blocked by the requirement. In the future you could build a Coppercube Engine using MinGW or GCC with a lightweight IDE with a fraction of the needed space of Visual Studio. It also allows you to easily add new libraries and dependencies to your build. Most libraries supply a CMakeLists.txt to get started. You just add_subdirectory() to include, then add the cmake library name to whichever component depends on it via target_link_libraries(...) Adding source files you have created is about as easy, just paste the path relative to the appropriate CMakeLists.txt in a target_sources(...) block. To use it, copy and paste the contents of the directories, including the top level (corresponding to the directory where both flacelib and win32player live), into the source code project. |
||||
|
|