Cmake project5/17/2023 * variables for that project and any sub projects * compiler settings for that project and any sub projects The CMake build system is a set of CMakeList.txt files in the folders under cmake/ in the moai sdk. Wouldn't it be good if we could just specify the files and settings needed for each output and have it generate a makefile, xcodeproj and a vcxproj file for each major version of visual studio? A Possible SolutionĬMake is one tool that claims to do this for us and prior to MOAI 1.5, it was already in use for the linux and blackberry builds, so it seemed like a logical choice to use CMake as a way to keep the project files in sync for other platforms. * fire up vim and edit a makefile (you know that syntax too of course) ![]() * boot up a macOSX box and xcode, (you have one of them too right?) * boot up windows and visual studio (once for each version you support) If you have a project that builds on systems using all of the above formats, then every time you need to add a file as a dependency of an output, you will need to: ![]() What they don't have in common is syntax, or portability or easy diff merges in a distributed development environment. ![]() What do vcxproj, xcodeproj, Makefile all have in common? They all tell the build system which files combine with which options to produce which outputs. Improve this doc Moai's CMake build system Crash Course on CMAKE The problem This documentation is obsolete or out of date and requires community help to clean it up.
0 Comments
Leave a Reply. |