1/2/2023 0 Comments Cmake install prfix![]() ![]() Installation of common files install( files. In other words, DEBUG and RELEASE Version of DESTINATION The installation path is different, that DESTINATION Must be in CONFIGUATIONS Back. ![]() Pay attention to the CONFIGURATIONS Parameters, The value specified by this option only applies to the options listed after this option : for example, To set up separate installation paths for debugging and publishing configurations, Do the following : install(TARGETS target OPTIONAL: If the file to be installed does not exist, It is not an error to specify.EXCLUDE_FROM_ALL: Specifies that the file excludes from the full installation, Install only as part of a component specific installation.CONFIGURATIONS: Specify the build configuration list to which the installation rules apply (DEBUG or RELEASE etc.Valid permissions are OWNER_READ,OWNER_WRITE,OWNER_EXECUTE,GROUP_READ,GROUP_WRITE,GROUP_EXECUTE,WORLD_READ,WORLD_WRITE,WORLD_EXECUTE,SETUID and SETGID PERMISSIONS: Specify permissions for installation files.DESTINATION: The directory to be installed on the disk.The meaning of some other parameters of the command : įor example : INSTALL(TARGETS myrun mylib mystaticlib RUNTIME DESTINATION $ Catalog. In order to conform to the general default installation path, If set DESTINATION Parameters, It is recommended to configure the folder under the installation directory variable. In the parameter TARGET It can be many kinds of target files, The most common is adopt ADD_EXECUTABLE perhaps ADD_LIBRARY Defined target file, You can execute binary 、 Dynamic library 、 Static library :Īssociated with the library PUBLIC The header fileĪssociated with the library PRIVATE The header file PRIVATE_HEADER | PUBLIC_HEADER | RESOURCE ] ] ] ] ) [ [ ARCHIVE | LIBRARY | RUNTIME | OBJECTS | FRAMEWORK | BUNDLE | Target file installation install (TARGETS targets. Usage such as : cmake -DCMAKE_INSTALL_PREFIX = /usr. Occasionally, It also uses a very useful variable CMAKE_INSTALL_PREFIX, Is used to specify the cmake install The relative address prefix of. It can be used to install a lot of content, Can include target binary 、 Dynamic library 、 Static libraries and files 、 Catalog 、 Script etc. Install Used to specify rules to run at installation time. Source code of this article github Address :. here, make install Is the content of running the command. Obviously, there is no need to, As an instruction that often needs to be run, The official has provided an order install, Only need to go through the installation content of this command, There is no need to define. That, make install When, We need to define a install What's your goal ? Stay cmake When, The most common steps are : Big guy reveals secrets Java Where are people planted ? Click to get it for free 《 Interview list of large factories 》, Overcome the interview difficulties ~> ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |