0

I'm trying to compile some code I found on GitHub https://github.com/tapio/Wendy I'm just trying to compile the stuff in tests/. I never had any experience with cmake, but they're kinda logical anyway.

I got stuck at the part where cmake does this:

   /usr/bin/c++       CMakeFiles/clear.dir/clear.o  -o clear -rdynamic -lwendy -lglfw -lGLEW -lglm -lz 

and gets this error:

   Linking CXX executable clear
   /usr/bin/ld: cannot find -lwendy
   /usr/bin/ld: cannot find -lglm
   collect2: ld returned 1 exit status
   make[3]: *** [clear] Error 1
   make[2]: *** [CMakeFiles/clear.dir/all] Error 2
   make[1]: *** [CMakeFiles/clear.dir/rule] Error 2
   make: *** [clear] Error 2

I don't understand how the Wendy and glm folder became a compiler flag. Somebody please explain how this is possible. :(

4

1 回答 1

1

tests/CMakeLists.txt该行中target_link_libraries(${test} wendy ${WENDY_LIBRARIES})指示 cmake 将库列表链接WENDY_LIBRARIES到可执行文件。

于 2012-08-22T17:41:46.023 回答