title: How to add Ziplib library in Clion on Ubuntu
body: <p><strong>I'm trying to add ZipLip into my project using Clion on ubuntu, but I have this output:</strong></p>
  
  <pre><code>====================[ Build | TryZip | Debug ]==================================
  
  /home/david/Snap/clion-2019.2.4/bin/cmake/linux/bin/cmake --build 
     /home/david/CLionProjects/TryZip/cmake-build-debug --target TryZip -- -j 2
  [ 13%] Built target bzip2
  [ 31%] Built target zlib
  [ 83%] Built target lzma
  [ 95%] Built target ZipLib
  Scanning dependencies of target TryZip
  [ 97%] Linking CXX executable ../bin/TryZip
  /usr/bin/ld: cannot find -lExternalLibrary/ZipLib
  collect2: error: ld returned 1 exit status
  CMakeFiles/TryZip.dir/build.make:102: recipe for target '../bin/TryZip' failed
  make[3]: *** [../bin/TryZip] Error 1
  CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/TryZip.dir/all' failed
  make[2]: *** [CMakeFiles/TryZip.dir/all] Error 2
  CMakeFiles/Makefile2:116: recipe for target 'CMakeFiles/TryZip.dir/rule' failed
  make[1]: *** [CMakeFiles/TryZip.dir/rule] Error 2
  Makefile:131: recipe for target 'TryZip' failed
  make: *** [TryZip] Error 2
  </code></pre>
  
  <p><strong>This is my Cmakefile.txt</strong> </p>
  
  <pre><code>cmake_minimum_required(VERSION 3.15)
  project(TryZip)
  
  if(BOOST_FILESYSTEM)
      include_directories(${BOOST_INCLUDE_DIR})
      link_directories(${BOOST_LIB_DIR})
      add_definitions(-DUSE_BOOST_FILESYSTEM)
  else()
      if(MSVC)
          add_definitions(-DFILESYSTEM_EXPERIMENTAL)
      endif()
  endif()
  if(BOOST_FILESYSTEM)
      if(UNIX)
          find_package(Boost COMPONENTS system filesystem REQUIRED)
  
          target_link_libraries(${Boost_FILESYSTEM_LIBRARY}
                  ${Boost_SYSTEM_LIBRARY})
      endif()
  endif()
  
  add_subdirectory(ExternalLibrary/ZipLib)
  link_libraries(ExternalLibrary/ZipLib)
  include_directories(ExternalLibrary/ZipLib)
  
  
  set(CMAKE_CXX_STANDARD 17)
  add_executable(TryZip main.cpp ExternalLibrary/ZipLib/ZipFile.cpp)
  
  target_link_libraries(TryZip ZipLib)
  </code></pre>
  
  <p>Can someone help me to solve this please? 
  My ZipLib folder is in the same folder as my cmakefile.txt file.</p>