Cmake add library5/1/2023 ![]() Let’s keep in mind, that those are not the only possible targets that can be defined in CMake. ![]() For now we know, that in order to build myExecutable we have to link with libA, for building libA we have to link with libB and for building libB we have to link with libC. Here we have an executable called myExecutable and three libraries libA, libB and libC. This is a classic way of creating targets. Let’s see the syntax for creating and using them: add_executable(myExecutable Most commonly used targets are executables and libraries. It generally represents one “job” of the building process. Target is a fundamental concept in CMake.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |