ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator CMake Build System for Coppercube 6.7.4.
person icon
redhacker2
Registered User
Quote
2026-02-23 17:37:35

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.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |