However, in some cases, it is desirable to export targets directlyįrom a build tree. Typically, projects are built and installed before being used by an outside Packages canĬhoose to employ such a pattern if different major versions of the packageĪre designed to be incompatible. If Ceres was exported, then CeresDIR should be the path to the exported Ceres build directory. There is an attempt to use version 3 together with version 4. MathFunctions, cmake will issue a diagnostic if By setting thisĬustom defined user property in this version and in the next version of In our example, MathFunctions_MAJOR_VERSION is defined as aĬOMPATIBLE_INTERFACE_STRING which means that it must beĬompatible among the dependencies of any depender. Use the IMPORTED option to tell CMake that this target references. Help/guide/importing-exporting/MyExe, create a build directory, runįind_library( math_REL NAMES m ) find_library( math_DBG NAMES md ) add_library( math STATIC IMPORTED GLOBAL ) set_target_properties( math PROPERTIES IMPORTED_LOCATION "$" COMPATIBILITY AnyNewerVersion ) In the CMakeLists file, use the addexecutable() command to create a new target called myexe. TheÄetails of this project are not important. addlibrary ( STATIC SHARED MODULE EXCLUDEFROMALL
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |