Use CMake To Import Shared Library Or Static Library
We need to configure project in the project file CMakeLists.txt to support to use shared library or static library.Here is an example to build a project based on the library uchardet. Use shared library Use static library