Тёмный

CMake-Episode 005 : Multi file C++ Project With CMake - Windows/Linux | CMake Starts Here 

LearnQtGuide
Подписаться 10 тыс.
Просмотров 13 тыс.
50% 1

Setting up a cross platform modern C++ project with multiple files. Telling CMake the location of the header files and other source files in the project. Storing headers and implementations files in different folders : include and src
Playlist : • CMake for C++ Cross Pl...
Globing Vs Explicitly listed sources[StackOverflow] : stackoverflow.com/a/1060061
source code : github.com/rutura/CMakeSeries
Udemy discounts: www.learnqt.guide/udemy-disco...
Qt C++ GUI Development for Beginners : bit.ly/2TpOXnc​​​​​
Qt C++ GUI Development - Intermediate : bit.ly/30tuoHL​​​​​
Qt Quick and QML For Beginners : bit.ly/2tnK17F​​​​​
Qt Quick and QML Intermediate : bit.ly/3aq1X2i​​​​​
Qt Quick and QML Advanced : bit.ly/35ZzXPw​​​​​
Multithreading and IPC with Qt C++ : bit.ly/35UyGcl​​​​​
---------------------
33 Qt Creator Tips and Tricks Free Booklet : bit.ly/33HCj4k​​​​​
----
Join the LearnQt Facebook Group : bit.ly/39zdOdM​​​​​
-----------Follow Us----------
Website - www.learnqt.guide/​​​
Twitter - / learnqtguide​​​
Facebook - / learnqtguide

Наука

Опубликовано:

 

1 апр 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@lakeborne5514
@lakeborne5514 Год назад
Thank you so much for these videos, I was having a very hard time learning CMake on windows, it looked very overwhelming, but so far your series has taught me a lot. You explain everything really nicely.
@user-hb1sj8gp8u
@user-hb1sj8gp8u 6 месяцев назад
Excellent and really well explained
@SofianMW
@SofianMW 2 года назад
great on the both OS, Bravo!
@thomasamathew4058
@thomasamathew4058 27 дней назад
What if I want to move the forms into a folder named forms. When I do that, the main.cpp which has "ui_mainwindow.h" is not found because that header is auto generated by Qt
@gokublack4832
@gokublack4832 3 года назад
Awesome video 👍 💯
@LearnQtGuide
@LearnQtGuide 3 года назад
Thank you! Cheers!
@ccf19881030
@ccf19881030 2 года назад
Nice Video,can you teach more about cmake examples?
@LearnQtGuide
@LearnQtGuide 2 года назад
Could you elaborate more on the examples you're looking for. I plan on covering the CMake "inheritance hierarchy" and put together a project containing multiple CMakeLists.txt files and then dive into projects using Qt and QML.
@jason_liam
@jason_liam 3 года назад
Really great videos. Can you tell us more about the *[EXCLUDE_FROM_ALL]* option of the *add_executable* command? For example, what is the difference between add_executable(somebinary EXCLUDE_FROM_ALL file1.cpp file2.cpp) and add_executable(somebinary file1.cpp file2.cpp). Also what is the difference between passing one source file and more than one source files in the executables. What happens behind the hood in this case. I mean we are passing two source files but getting one binary as executable. For example lets say file1.cpp and file2.cpp are completely independent source files. At what step is the 2nd source file ignored/added so that we get only one final executable. *#justasuggestion*
@LearnQtGuide
@LearnQtGuide 3 года назад
My understanding is that the EXLUDE_FROM_ALL option, just removes the target from the "all" target : cmake.org/cmake/help/v3.14/prop_tgt/EXCLUDE_FROM_ALL.html . As to which .cpp file ends up in your binary, your entire C++ program will be made up of one or more .cpp file files, that are roughly equivalent to translation units (TU : en.wikipedia.org/wiki/Translation_unit_(programming)) . When you build your program, each TU is turned into a binary form. Among those TUs, one is special in that it contains the main function, which is the where your program starts executing. The linker will then grab all the other TUs and stitch them to the main TU which contains the main function to make up a single binary. I may make a detailed video about this process in the future.
@jason_liam
@jason_liam 3 года назад
@@LearnQtGuide Yeah that will be great. You can also explain "all" target by giving/showing some examples of it. Just like you did for other things in this series. Also, you deserve much more views & subscribers. Loved your channel.
@roverojermainemariongilr.2856
@roverojermainemariongilr.2856 2 года назад
Hi Daniel I am receiving a [build] error that says undefined reference to `std::__cxx11::basic_string* How to fix this error?
@aytuncdemir4844
@aytuncdemir4844 Год назад
@@bluehornet6752 thats an undefined refence error which means it has to do something with linker.
Далее
why do header files even exist?
10:53
Просмотров 361 тыс.
АНДЖИЛИША в платье 😍
00:27
Просмотров 615 тыс.
Florent Castelli: Introduction to CMake
1:25:49
Просмотров 46 тыс.
CMake - the essential package
27:54
Просмотров 8 тыс.
BEST WAY to make Desktop Applications in C++
26:00
Просмотров 882 тыс.
keren sih #iphone #apple
0:16
Просмотров 1,7 млн
wireless switch without wires part 6
0:49
Просмотров 3,9 млн