链接到外部库
target_link_libraries(GLBall ${CMAKE_BINARY_DIR}/res/mylib.so)
make[2]: *** No rule to make target `res/mylib.so', needed by `GLBall'. Stop. make[1]: *** [CMakeFiles/GLBall.dir/all] Error 2 make: *** [all] Error 2 (GLBall is the executable)
bin/res
.
find_library(RESULT mylib.so PATHS ${CMAKE_BINARY_DIR}/res)
RESULT-NOTFOUND
.
慕斯王