CMakeLists.txt does not allow creation of static library and link applications accordingly. Creation of SHARED and STATIC should be allowed using -DBUILD_SHARED_LIBS README file is also ammended to provide information regarding use of -DBUILD_SHARED_LIBS while using cmake By default if -DBUILD_SHARED_LIBS cmake option is not provided or is not set to ON, shared libraries are created. Deepak Kumar Mishra (2): CMakeLists.txt: enable SHARED and STATIC lib creation README: add documentation for -DBUILD_SHARED_LIBS CMakeLists.txt | 15 ++++++++++----- README | 13 +++++++++++-- 2 files changed, 21 insertions(+), 7 deletions(-) -- 2.17.1