![]() You canĩ # define multiple libraries by adding multiple add.library() commands,ġ0 # and CMake builds them for you. The JNI directory created on the previous step (the current version directory name is CPP) Right-click -> New -> file Enter CMAKELISTS.TXT 4.3 Configuring cmakelists.txt filesġ # Sets the minimum version of CMake required to build your native library.Ģ # This ensures that a certain set of CMake features is available toĤ 5 cmake_minimum_required(VERSION 3.4.1)Ħ 7 # Specifies a library name, specifies whether the library is STATIC orĨ # SHARED, and provides relative paths to the source code. Project name (or file) -> Right button -> new -> folder -> JNI Folder 4.2 Creating a CMAKELISTS.TXT file Add a C / C ++ library in existing projects 4.1 Creating a JNI directory
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |