我已经生成了
libBox2D.a
试试这个:
find_library(LIBBOX2D Box2D DIRECTORY)
其中将 DIRECTORY 替换为
target_link_libraries(exec ${LIBBOX2D})