X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=CMakeLists.txt;h=4833e360834086d5420fcb6719c0593b46cd58d6;hb=3e62c80a3b70d79d89d8d911aa4256a4efd762b3;hp=d524e8ccb4c191df4ec38b6eea6e0fdb411baa02;hpb=ca0e77c077c73de27f7528e2fa5c1b9f6bedf471;p=lugaru.git diff --git a/CMakeLists.txt b/CMakeLists.txt index d524e8c..4833e36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,10 +25,10 @@ endif(NOT LUGARU_INSTALL_PREFIX) set(CMAKE_INSTALL_PREFIX "${LUGARU_INSTALL_PREFIX}" CACHE INTERNAL "Prefix prepended to install directories" FORCE) -if(WIN32) +if(MINGW) set(OPENGL_gl_LIBRARY "-lopengl32" CACHE STRING "OpenGL library for Win32" FORCE) set(OPENGL_glu_LIBRARY "-lglu32" CACHE STRING "GLU library for Win32" FORCE) -endif(WIN32) +endif(MINGW) @@ -78,13 +78,19 @@ if(MSVC) # MSVC non-C99 support biting us hard ) endif(MSVC) +if(UNIX) + set(LUGARU_H + ${LUGARU_H} + ${SRCDIR}/MacCompatibility.h + ) +endif(UNIX) + set(LUGARU_H ${SRCDIR}/Constants.h ${SRCDIR}/Frustum.h ${SRCDIR}/Game.h ${SRCDIR}/Lights.h ${SRCDIR}/LinkedList.h - ${SRCDIR}/MacCompatibility.h ${SRCDIR}/Models.h ${SRCDIR}/Objects.h ${SRCDIR}/Person.h