What CMAKE can do - (for things it generates) it can create numerous makefile flavors, it can create an eclipse project file, and a Visual Studio project file (thus you have the eclipse IDE and the Visual Studio project file IDE) (Yes, Makefiles can create a CTAGS file, its not the same as what IDEs do). Often you want a project file for general editing purposes. Autoconf uses numerous shell script fragments, M4 macros and lots of "sh" tricks to figure things out - generally lots of macros in the form: "name=value" - autoconf then reads a template file and generates an outputįor AUTOCONF - you have to write IF statements using SH, using M4, and GNU-Make tricks - in the end you get a makefile, you do not get an IDE Project file. configure (gnu-autoconfigure) then you can say CMake is like autoconf but not. So my question, what exactly does CMake output (executables versus build files) and is it possible to use CMake simply as a portable Make?ĬMake is a "makefile" generator - it creates Makefiles, or it creates Visual Studio Projects, or Eclipse Projects for "target=host" only. ![]() I was hoping to use CMake as portable Make, but the more I read into it, it seems like this may not be intention of CMake? For example, CMake may output a makefile for a Linux machine, but it might output a Visual Studio solution for a Windows machine. I initially thought CMake would produce executables depending on recipe files, however, it seems like CMake outputs specific build systems. However, as I dig more into CMake, I seem to get more confused. The primary selling point appears to be CMake's ability to target a wide variety of systems. This has turned me to CMake which I have little experience with. (disclaimer: I'm somewhat familiar with Nmake, Cygwin hosting make, etc., however, these seem a little hacky). I initially thought I would use Make for this, however, Make doesn't seem to be portable to Windows. I'm currently tossing around an idea of building a project that can target either Linux or Windows machines. Specifically, I'm interested in building a complex project where I use a more manual build system (think Make). I'm currently trying to become more comfortable with C development outside of IDEs. /r/programminghelp – for beginner questions about programming./r/programming – for discussion and news about computer programming./r/learnprogramming – for people interested in learning to code./r/dailyprogrammer – for programming challenges of varying difficulty./r/cs50 – Harvard's Introduction to Computer Science./r/cpp_questions – for questions about C++./r/cplusplus and /r/cpp – for discussions about C++./r/computerscience – for discussion about computer science./r/coding – for a tighter focus on code.r/C_Homework – another subreddit for questions r/cprog – another subreddit for articles and discussions ![]() ![]() CS50-Harvard's introduction to computer science with a C programming course.Ī Tutorial on Portable Makefiles Other Subreddits on C.POSIX.1-2008-the standard operating system interface.GLIBC, the GNU C Library documentation provides a manual (PDF, HTML), Wiki, and FAQ.The C Book second edition by Mike Banahan, Declan Brady and Mark Doran is freely available online.Written by the language author, and known colloquially as the "K & R" book-a book of lore The C Programming Language by Dennis M.Only C is on topic (not C++, C# or general programming)Ĭlick the following link to filter out the chosen topic.Format your code properly (4 leading spaces, correctly indented).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |