title: No rule to make target `libbrcmEGL.so', needed by `HelloTriangle'
body: <p>I'm trying to cross-compile an OpenGLES2.0 example HelloTriangle using VisualGDB for the RaspberryPi 3 running Raspbian lite.</p>
  
  <p>I assume I was able to include the libraries <code>libbrcmEGL.so</code> and <code>libbrcmGLESv2.so</code> correctly in my <code>CMakeLists.txt</code> file
  because instead of giving me these errors: </p>
  
  <pre><code>c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/6/../../../../arm-linux-gnueabihf/bin/ld.exe: cannot find -lLIBGLES
  c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/6/../../../../arm-linux-gnueabihf/bin/ld.exe: cannot find -lLIBEGL`
  </code></pre>
  
  <p>It gives me these errors </p>
  
  <pre><code>make[2]: *** No rule to make target `libbrcmEGL.so', needed by `HelloTriangle'.  Stop.`
  </code></pre>
  
  <p>This is my CMakeLists file:</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.7)
  project(HelloTriangle)
  set(LIBRARIES_FROM_REFERENCES "")
  add_executable(HelloTriangle HelloTriangle.cpp esShapes.c esTransform.c esUtil.c esShader.c)
  include_directories(include)
  target_link_libraries(HelloTriangle ${CMAKE_BINARY_DIR}/libbrcmGLESv2.so ${CMAKE_BINARY_DIR}/libbrcmEGL.so "${LIBRARIES_FROM_REFERENCES}")
  </code></pre>
  
  <p>I don't understand what else it needs to make the target. Looking around stack overflow, I saw suggestions to add </p>
  
  <pre><code>LINK_DIRECTORIES(/opt/vc/lib/)
  </code></pre>
  
  <p>I also tried </p>
  
  <pre><code>target_link_libraries(HelloTriangle /opt/vc/lib/libbrcmGLESv2.so /opt/vc/lib/libbrcmEGL.so "${LIBRARIES_FROM_REFERENCES}")
  </code></pre>
  
  <p>I also checked that I have these libraries in my sysroot in:</p>
  
  <pre><code>C:\SysGCC\raspberry\arm-linux-gnueabihf\sysroot
  </code></pre>
  
  <p>I still get the same error:</p>
  
  <p>I need some help figuring out what is missing from my CMakeLists.txt</p>