title: Cannot linking cmake targets
body: <p>I have the following structure of my project:</p>
  <pre><code>Project
  -- CMakeLists.txt
  -- src/
  -- -- main.cpp
  -- include/
  -- -- curl/
  -- -- -- *.h files
  -- -- nlohmann/
  -- -- -- *.hpp files
  -- lib/
  -- -- libcurl.lib
  </code></pre>
  <p>Project/CMakeLists:</p>
  <pre><code>cmake_minimum_required(VERSION 3.1)
  set(PROJECT_NAME &quot;VKAPI&quot;)
  project(${PROJECT_NAME} CXX)
  
  include_directories(${PROJECT_SOURCE_DIR}/include)
  
  file(GLOB TARGET_SRC &quot;./src/*.cpp&quot;)
  
  add_executable(main ${TARGET_SRC})
  target_link_libraries(main &quot;${CMAKE_SOURCE_DIR}/lib/libcurl.lib&quot;)
  
  install(TARGETS main DESTINATION bin)
  </code></pre>
  <p>It works fine, but when I launch main.exe, it doesn't work. Instead of executing correctly and displaying the message, it ends with the code 0. Code:</p>
  <pre><code>#include &lt;iostream&gt;
  
  #include &quot;curl/curl.h&quot;
  #include &quot;nlohmann/json.hpp&quot;
  
  int main()
  {
      CURL* curl = curl_easy_init();
  
      std::cout &lt;&lt; &quot;That's work!&quot; &lt;&lt; std::endl;
      std::cout &lt;&lt; &quot;Hello Easy C++ project!&quot; &lt;&lt; std::endl;
  }
  </code></pre>
  <p>But when I delete <code>&quot;#include &quot;curl/curl.h&quot;&quot;</code> and <code>&quot;#include &quot;nlohmann/json.hpp&quot;&quot;</code>, it started to work fine.</p>