diff options
author | Alexey Pavlov <alexpux@gmail.com> | 2017-02-02 10:01:02 +0300 |
---|---|---|
committer | Alexey Pavlov <alexpux@gmail.com> | 2017-02-02 10:01:02 +0300 |
commit | c9f4c016c7bcb4d994d867f0a340aaaa01b93ddc (patch) | |
tree | d05b51e2ab06747da0e14b022b9bf5760618a9dd | |
parent | e470ec83cf1ce72b7095ea737c357e4be5312236 (diff) | |
download | devil-c9f4c016c7bcb4d994d867f0a340aaaa01b93ddc.tar.gz |
ILUT need opengl and glut for linking
-rw-r--r-- | DevIL/src-ILUT/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/DevIL/src-ILUT/CMakeLists.txt b/DevIL/src-ILUT/CMakeLists.txt index a2926bec..63662bc6 100644 --- a/DevIL/src-ILUT/CMakeLists.txt +++ b/DevIL/src-ILUT/CMakeLists.txt @@ -20,6 +20,24 @@ endif( CMAKE_SIZEOF_VOID_P EQUAL 8 ) include_directories( include ../include ) +# Find glut +find_package(GLUT REQUIRED) +include_directories(${GLUT_INCLUDE_DIRS}) +link_directories(${GLUT_LIBRARY_DIRS}) +add_definitions(${GLUT_DEFINITIONS}) +if(NOT GLUT_FOUND) + message(ERROR " GLUT not found!") +endif(NOT GLUT_FOUND) + +# Find opengl +find_package(OpenGL REQUIRED) +include_directories(${OpenGL_INCLUDE_DIRS}) +link_directories(${OpenGL_LIBRARY_DIRS}) +add_definitions(${OpenGL_DEFINITIONS}) +if(NOT OPENGL_FOUND) + message(ERROR " OPENGL not found!") +endif(NOT OPENGL_FOUND) + # for windows add the .def and .rc files to the source list if(WIN32) add_definitions(-DALLEGRO_MSVC) @@ -52,6 +70,8 @@ set_target_properties(ILUT PROPERTIES SOVERSION 1) target_link_libraries(ILUT IL ILU + ${OPENGL_LIBRARIES} + ${GLUT_LIBRARY} ) # generate pkg-config file |