CMake fixes

This commit is contained in:
Epicalert 2021-07-13 17:21:58 +08:00
parent ca151ead2b
commit ad23fb6a1e
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD
2 changed files with 2 additions and 1 deletions

View file

@ -36,6 +36,7 @@ include_directories( ${OPENGL_INCLUDE_DIR} )
include_directories( ${GLEW_INCLUDE_DIRS} ) include_directories( ${GLEW_INCLUDE_DIRS} )
include_directories( ${GLM_INCLUDE_DIRS} ) include_directories( ${GLM_INCLUDE_DIRS} )
include_directories( ${GLUT_INCLUDE_DIR} ) include_directories( ${GLUT_INCLUDE_DIR} )
include_directories( ${LIBZIP_INCLUDE_DIR} )
include_directories( ${PROJECT_SOURCE_DIR}/src ) include_directories( ${PROJECT_SOURCE_DIR}/src )
configure_file( ${PROJECT_SOURCE_DIR}/src/config.hpp.in ${PROJECT_SOURCE_DIR}/src/config.hpp @ONLY ) configure_file( ${PROJECT_SOURCE_DIR}/src/config.hpp.in ${PROJECT_SOURCE_DIR}/src/config.hpp @ONLY )
file( file(

View file

@ -1,4 +1,4 @@
find_path( GLUT_INCLUDE_DIR NAMES zip.h ) find_path( GLUT_INCLUDE_DIR NAMES glut.h freeglut.h PATHS /usr/include/GL )
find_library( GLUT_LIBRARY NAMES glut PATHS /usr/lib /usr/lib64 /lib /lib64 /usr/local/lib ) find_library( GLUT_LIBRARY NAMES glut PATHS /usr/lib /usr/lib64 /lib /lib64 /usr/local/lib )