title: Adding Dependent Dll to the NPAPI plugin project using CMake in Firebreath
body: <p>The plugin has to call functions in an external dependent dll file.
  I followed the tutorial and did the following but still no success.</p>
  
  <ul>
  <li><p>I have pasted a sample.dll file at my project root.</p></li>
  <li><p>I have added the following configuration to projectDef.cmake (projects\plugintest\Win\projectDef.cmake):</p>
  
  <pre><code>set (LIBRARY_PATH "${CMAKE_CURRENT_SOURCE_DIR}/sample.dll")
  target_link_libraries(${PROJECT_NAME} debug "${LIBRARY_PATH}/debug/sample.dll")
  target_link_libraries(${PROJECT_NAME} optimized "${SANDSTONE_DIR}/release/sample.dll")
  </code></pre></li>
  <li><p>I generated the solution file using 
  "firebreath\prep2010.cmd projects build"</p>
  
  <ul>
  <li>The generated firebreath solution's project properties->Configuration properties->linker->Input->Additional dependecies has the appropriate absolute path of dll.</li>
  </ul></li>
  <li><p>I added the following in PluginTestAPI.cpp:</p>
  
  <pre><code>include "sample.h"
  </code></pre></li>
  </ul>
  
  <p>Build errors:</p>
  
  <p>Cannot open include file "sample.h" : No such file or directory.</p>
  
  <p>The dll file is a package of header file and lib file. I am able to successfully make calls to the dll using JNA.</p>
  
  <p>I am a Java developer and don't have much experience in C++ programming. I believe I am missing something fundamental.</p>
  
  <p>Thanks! </p>