![]() The remaining arguments specify library names or flags. ![]() ![]() The value of this property is used by the generators to construct the link rule for the target. Specify libraries or flags to use when linking a given target. In addition to accepting values from the targetlinklibraries () command, values may be set directly on any target using the setproperty () command. Now, you can use targetlinklibraries to link the imported library: targetlinklibraries (mainApp MyLib) An important note: If you used CMake to configure and build Lib.lib in the same source tree as mainApp, you can skip the IMPORTED steps, and simply call targetlinklibraries as shown above. Iâm using a 3rd party library in my plugin and Iâm trying to write a CMakeLists.txt file so that the. This property specifies the list of libraries or targets which will be used for linking. This command can be used to add any link options, but alternative commands exist to add libraries (targetlinklibraries() or linklibraries()).See documentation of the directory and target LINKOPTIONS properties. Usage requirements from linked library targets. Hopefully Iâll be able to explain what Iâm struggling with - hear me out, Iâm quite unfamiliar with build processes in general so there might be some things Iâm totally missing. To embed the library directly into an existing CMake project, place the entire source tree in a subdirectory and call addsubdirectory() in your CMakeLists.txt. After you used FetchContent, you just need to add the target to the LIBRARIES argument for the cimakexxx macro(s). The named must have been created by a command such as addexecutable() or addlibrary() and must not be an ALIAS target. Specify libraries or flags to use when linking a given target and/or its dependents.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |