CMakeLists.txt
author Harley Laue <losinggeneration@gmail.com>
Thu, 13 May 2010 18:49:02 -0500
changeset 197 f88b3d83e992
parent 190 c29f6e7ef698
child 199 e5fee73a6c8c
permissions -rw-r--r--
Fixed CMake so Force internal actually has a chance at working correctly
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
103
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
     1
project(lugaru)
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
     2
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
     3
cmake_minimum_required(VERSION 2.6)
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
     4
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
     5
set(SRCDIR "${CMAKE_CURRENT_SOURCE_DIR}/Source")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
     6
set(DEPDIR "${CMAKE_CURRENT_SOURCE_DIR}/Dependencies")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
     7
108
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
     8
if(NOT CMAKE_BUILD_TYPE)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
     9
  set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    10
      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel"
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    11
      FORCE)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    12
endif(NOT CMAKE_BUILD_TYPE)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    13
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    14
if(NOT LUGARU_INSTALL_PREFIX)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    15
  if(WIN32)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    16
     set(LUGARU_INSTALL_PREFIX C:\Lugaru CACHE PATH
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    17
     "LUGARU_INSTALL_PREFIX: Install path prefix, prepended onto install directories."
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    18
      FORCE)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    19
  else(WIN32)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    20
     set(LUGARU_INSTALL_PREFIX /usr/local/lugaru CACHE PATH
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    21
     "CMAKE_INSTALL_PREFIX: Install path prefix, prepended onto install directories."
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    22
      FORCE)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    23
  endif(WIN32)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    24
endif(NOT LUGARU_INSTALL_PREFIX)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    25
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    26
set(CMAKE_INSTALL_PREFIX "${LUGARU_INSTALL_PREFIX}" CACHE INTERNAL "Prefix prepended to install directories" FORCE)
108
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    27
126
66ee345249d7 Added Win32 conditional to CMake scripts for building on Windows
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 119
diff changeset
    28
if(WIN32)
129
068873e48367 Fixed Windows conditionals for building resources and OpenGL library linkage in CMake scripts; Switching to default branch
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 119
diff changeset
    29
	set(OPENGL_gl_LIBRARY "-lopengl32" CACHE STRING "OpenGL library for Win32" FORCE)
068873e48367 Fixed Windows conditionals for building resources and OpenGL library linkage in CMake scripts; Switching to default branch
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 119
diff changeset
    30
	set(OPENGL_glu_LIBRARY "-lglu32" CACHE STRING "GLU library for Win32" FORCE)
126
66ee345249d7 Added Win32 conditional to CMake scripts for building on Windows
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 119
diff changeset
    31
endif(WIN32)
108
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
    32
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    33
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    34
106
e9183cfb697e Added in support for the CMake module for searching for and configuring to use libvorbisfile and libogg
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 103
diff changeset
    35
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    36
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    37
set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    38
	${SRCDIR}/Frustum.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    39
	${SRCDIR}/GameDraw.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    40
	${SRCDIR}/GameInitDispose.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    41
	${SRCDIR}/GameTick.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    42
	${SRCDIR}/Globals.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    43
	${SRCDIR}/Lights.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    44
	${SRCDIR}/Models.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    45
	${SRCDIR}/Objects.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    46
	${SRCDIR}/pack.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    47
	${SRCDIR}/pack_private.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    48
	${SRCDIR}/Person.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    49
	${SRCDIR}/private.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    50
	${SRCDIR}/Quaternions.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    51
	${SRCDIR}/Random.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    52
	${SRCDIR}/Skeleton.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    53
	${SRCDIR}/Skybox.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    54
	${SRCDIR}/Sprites.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    55
	${SRCDIR}/Terrain.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    56
	${SRCDIR}/Text.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    57
	${SRCDIR}/TGALoader.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    58
	${SRCDIR}/unpack.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    59
	${SRCDIR}/unpack_private.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    60
	${SRCDIR}/Weapons.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    61
	${SRCDIR}/OpenGL_Windows.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    62
	${SRCDIR}/openal_wrapper.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    63
	${SRCDIR}/WinInput.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    64
)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    65
188
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
    66
if(UNIX)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
    67
	set(LUGARU_SRCS
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
    68
		${LUGARU_SRCS}
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
    69
		${SRCDIR}/MacCompatibility.cpp
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
    70
	)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
    71
endif(UNIX)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
    72
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    73
set(LUGARU_H
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    74
	${SRCDIR}/Constants.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    75
	${SRCDIR}/Frustum.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    76
	${SRCDIR}/Game.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    77
	${SRCDIR}/Lights.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    78
	${SRCDIR}/LinkedList.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    79
	${SRCDIR}/MacCompatibility.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    80
	${SRCDIR}/Models.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    81
	${SRCDIR}/Objects.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    82
	${SRCDIR}/Person.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    83
	${SRCDIR}/PhysicsMath.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    84
	${SRCDIR}/Pointer.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    85
	${SRCDIR}/Quaternions.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    86
	${SRCDIR}/Random.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    87
	${SRCDIR}/Skeleton.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    88
	${SRCDIR}/Skybox.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    89
	${SRCDIR}/Sprites.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    90
	${SRCDIR}/TGALoader.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    91
	${SRCDIR}/Terrain.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    92
	${SRCDIR}/Text.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    93
	${SRCDIR}/Weapons.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    94
	${SRCDIR}/WinInput.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    95
	${SRCDIR}/alstubs.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    96
	${SRCDIR}/binio.h
189
8f78a01a216f Forgot to update CMake... again...
Harley Laue <losinggeneration@gmail.com>
parents: 185
diff changeset
    97
	${SRCDIR}/openal_wrapper.h
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    98
	${SRCDIR}/gamegl.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    99
	${SRCDIR}/glstubs.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   100
	${SRCDIR}/md5.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   101
	${SRCDIR}/mmgr.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   102
	${SRCDIR}/nommgr.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   103
	${SRCDIR}/pack_private.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   104
	${SRCDIR}/private.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   105
	${SRCDIR}/unpack_private.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   106
)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   107
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   108
if(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   109
  if(CMAKE_CROSSCOMPILING)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   110
    ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   111
						  COMMAND i686-pc-mingw32-windres
185
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   112
							  -I${SRCDIR}/res
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   113
							  -o ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
185
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   114
							  -i${SRCDIR}/res/Lugaru.rc
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   115
					      DEPENDS ${SRCDIR}/res/Lugaru.rc
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   116
						  )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   117
  endif(CMAKE_CROSSCOMPILING)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   118
  if(NOT CMAKE_CROSSCOMPILING)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   119
    ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   120
						  COMMAND windres
185
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   121
							  -I${SRCDIR}/res
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   122
							  -o ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
185
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   123
							  -i${SRCDIR}/res/Lugaru.rc
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   124
					      DEPENDS ${SRCDIR}/res/Lugaru.rc
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   125
						  )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   126
  endif(NOT CMAKE_CROSSCOMPILING)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   127
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   128
  # !!! FIXME: get rid of this.
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   129
  set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   130
	${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   131
	${SRCDIR}/WinDefs.cpp)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   132
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   133
  set(LUGARU_H
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   134
	${LUGARU_H}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   135
	${SRCDIR}/WinDefs.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   136
	${SRCDIR}/res/resource.h)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   137
endif(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   138
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   139
if (APPLE)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   140
    set(PLATFORM_LIBS "-framework Carbon -framework Cocoa -framework OpenGL -framework OpenAL")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   141
endif (APPLE)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   142
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   143
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   144
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   145
# Deal with dependencies...
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   146
103
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
   147
find_package(OpenGL REQUIRED)
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   148
# force this include dir no matter what, so we get sane headers.
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   149
include_directories("${DEPDIR}/OpenGL")
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   150
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   151
option (LUGARU_FORCE_INTERNAL_OPENAL "Force internal OpenAL, even if theer's a system version" False)
188
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   152
if (NOT LUGARU_FORCE_INTERNAL_OPENAL)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   153
    find_package(OpenAL REQUIRED)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   154
else(NOT LUGARU_FORCE_INTERNAL_OPENAL)
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   155
	set(OPENAL_FOUND False)
188
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   156
endif (NOT LUGARU_FORCE_INTERNAL_OPENAL)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   157
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   158
if (NOT OPENAL_FOUND)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   159
    message(STATUS "Using internal copy of OpenAL")
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   160
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} OpenAL")
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   161
    set(OPENALDIR "${DEPDIR}/OpenAL")
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   162
    set(OPENAL_INCLUDE_DIR "${OPENALDIR}/include/AL")
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   163
    set(OPENAL_LIBRARY "")
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   164
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   165
    if (WINDOWS)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   166
        set(LUGARU_HAS_INTERNAL_OPENAL True)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   167
#        if (MSVC)                     # !!! FIXME: package MSVC .dll and .lib for Windows?
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   168
#            set(OPENAL_LIBRARY
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   169
#                ${OPENALDIR}/lib/win32/msvc/OpenAL32.lib
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   170
#            )
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   171
#        endif (MSVC)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   172
        if (MINGW)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   173
            set(OPENAL_LIBRARY
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   174
                ${OPENALDIR}/lib/win32/mingw/libOpenAL32.dll.a
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   175
            )
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   176
        endif (MINGW)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   177
     endif(WINDOWS)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   178
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   179
    if (NOT LUGARU_HAS_INTERNAL_OPENAL)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   180
        message(ERROR "We don't have a prebuilt OpenAL for this platform.")
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   181
    endif (NOT LUGARU_HAS_INTERNAL_OPENAL)
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   182
endif (NOT OPENAL_FOUND)
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   183
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   184
option (LUGARU_FORCE_INTERNAL_SDL "Force internal libSDL, even if there's a system version" False)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   185
if (NOT LUGARU_FORCE_INTERNAL_SDL)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   186
    find_package(SDL)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   187
else(NOT LUGARU_FORCE_INTERNAL_SDL)
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   188
	set(SDL_FOUND False)
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   189
endif (NOT LUGARU_FORCE_INTERNAL_SDL)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   190
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   191
if (NOT SDL_FOUND)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   192
    message(STATUS "Using internal copy of SDL")
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   193
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} SDL")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   194
    set(SDLDIR "${DEPDIR}/SDL12")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   195
    set(SDL_INCLUDE_DIR "${SDLDIR}/include")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   196
    set(SDL_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   197
    if (APPLE)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   198
        set(LUGARU_HAS_INTERNAL_SDL True)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   199
        set(SDL_LIBRARY
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   200
            ${SDLDIR}/lib/macosx/libSDL-1.2.0.dylib
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   201
            ${SDLDIR}/lib/macosx/libSDLmain-osx.a
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   202
        )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   203
    endif (APPLE)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   204
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   205
    if (WINDOWS)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   206
        set(LUGARU_HAS_INTERNAL_SDL True)
185
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   207
        if (MSVC)
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   208
          set(SDL_LIBRARY
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   209
              ${SDLDIR}/lib/win32/msvc/SDL.lib
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   210
              ${SDLDIR}/lib/win32/msvc/SDLmain.lib
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   211
          )
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   212
        endif (MSVC)
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   213
        if (MINGW)
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   214
          set(SDL_LIBRARY
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   215
              ${SDLDIR}/lib/win32/mingw/libSDL.dll.a
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   216
              ${SDLDIR}/lib/win32/mingw/libSDLmain.a
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   217
          )
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   218
        endif (MINGW)
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   219
    endif (WINDOWS)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   220
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   221
    if (NOT LUGARU_HAS_INTERNAL_SDL)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   222
        message(ERROR "We don't have a prebuilt SDL for this platform.")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   223
    endif (NOT LUGARU_HAS_INTERNAL_SDL)
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   224
endif (NOT SDL_FOUND)
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   225
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   226
option (LUGARU_FORCE_INTERNAL_PNG "Force internal libPNG, even if there's a system version" False)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   227
if (NOT LUGARU_FORCE_INTERNAL_PNG)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   228
    find_package(PNG)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   229
else(NOT LUGARU_FORCE_INTERNAL_PNG)
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   230
	set(PNG_FOUND False)
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   231
endif (NOT LUGARU_FORCE_INTERNAL_PNG)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   232
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   233
if (NOT PNG_FOUND)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   234
    message(STATUS "Using internal copy of libpng")
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   235
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} PNG")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   236
    set(PNGDIR "${DEPDIR}/libpng")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   237
    set(PNG_INCLUDE_DIR "${PNGDIR}")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   238
    set(PNG_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   239
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   240
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   241
        ${PNGDIR}/png.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   242
        ${PNGDIR}/pngerror.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   243
        ${PNGDIR}/pngget.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   244
        ${PNGDIR}/pngmem.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   245
        ${PNGDIR}/pngpread.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   246
        ${PNGDIR}/pngread.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   247
        ${PNGDIR}/pngrio.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   248
        ${PNGDIR}/pngrtran.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   249
        ${PNGDIR}/pngrutil.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   250
        ${PNGDIR}/pngset.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   251
        ${PNGDIR}/pngtrans.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   252
        ${PNGDIR}/pngwio.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   253
        ${PNGDIR}/pngwrite.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   254
        ${PNGDIR}/pngwtran.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   255
        ${PNGDIR}/pngwutil.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   256
    )
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   257
endif (NOT PNG_FOUND)
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   258
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   259
option (LUGARU_FORCE_INTERNAL_JPEG "Force internal libJPEG, even if there's a system version" False)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   260
if (NOT LUGARU_FORCE_INTERNAL_JPEG)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   261
    find_package(JPEG)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   262
else(NOT LUGARU_FORCE_INTERNAL_JPEG)
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   263
	set(JPEG_FOUND False)
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   264
endif (NOT LUGARU_FORCE_INTERNAL_JPEG)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   265
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   266
if (NOT JPEG_FOUND)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   267
    message(STATUS "Using internal copy of libjpeg")
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   268
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} JPEG")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   269
    set(JPEGDIR "${DEPDIR}/libjpeg")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   270
    set(JPEG_INCLUDE_DIR "${JPEGDIR}")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   271
    set(JPEG_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   272
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   273
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   274
        ${JPEGDIR}/jdapistd.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   275
        ${JPEGDIR}/jdmaster.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   276
        ${JPEGDIR}/jdapimin.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   277
        ${JPEGDIR}/jcapimin.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   278
        ${JPEGDIR}/jdmerge.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   279
        ${JPEGDIR}/jdatasrc.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   280
        ${JPEGDIR}/jdatadst.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   281
        ${JPEGDIR}/jdcoefct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   282
        ${JPEGDIR}/jdcolor.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   283
        ${JPEGDIR}/jddctmgr.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   284
        ${JPEGDIR}/jdhuff.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   285
        ${JPEGDIR}/jdinput.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   286
        ${JPEGDIR}/jdmainct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   287
        ${JPEGDIR}/jdmarker.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   288
        ${JPEGDIR}/jdpostct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   289
        ${JPEGDIR}/jdsample.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   290
        ${JPEGDIR}/jdtrans.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   291
        ${JPEGDIR}/jerror.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   292
        ${JPEGDIR}/jidctflt.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   293
        ${JPEGDIR}/jidctfst.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   294
        ${JPEGDIR}/jidctint.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   295
        ${JPEGDIR}/jmemmgr.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   296
        ${JPEGDIR}/jutils.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   297
        ${JPEGDIR}/jmemnobs.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   298
        ${JPEGDIR}/jquant1.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   299
        ${JPEGDIR}/jquant2.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   300
        ${JPEGDIR}/jcomapi.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   301
        ${JPEGDIR}/jcmarker.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   302
        ${JPEGDIR}/jcapistd.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   303
        ${JPEGDIR}/jcparam.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   304
        ${JPEGDIR}/jcinit.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   305
        ${JPEGDIR}/jcdctmgr.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   306
        ${JPEGDIR}/jccoefct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   307
        ${JPEGDIR}/jcmainct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   308
        ${JPEGDIR}/jfdctflt.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   309
        ${JPEGDIR}/jfdctint.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   310
        ${JPEGDIR}/jfdctfst.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   311
        ${JPEGDIR}/jchuff.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   312
        ${JPEGDIR}/jcsample.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   313
        ${JPEGDIR}/jcmaster.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   314
        ${JPEGDIR}/jccolor.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   315
        ${JPEGDIR}/jcprepct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   316
        ${JPEGDIR}/jcarith.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   317
        ${JPEGDIR}/jdarith.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   318
        ${JPEGDIR}/jaricom.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   319
    )
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   320
endif (NOT JPEG_FOUND)
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   321
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   322
option (LUGARU_FORCE_INTERNAL_ZLIB "Force internal zlib, even if there's a system version" False)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   323
if (NOT LUGARU_FORCE_INTERNAL_ZLIB)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   324
    find_package(ZLIB)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   325
else(NOT LUGARU_FORCE_INTERNAL_ZLIB)
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   326
	set(ZLIB_FOUND False)
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   327
endif (NOT LUGARU_FORCE_INTERNAL_ZLIB)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   328
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   329
if (NOT ZLIB_FOUND)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   330
    message(STATUS "Using internal copy of zlib")
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   331
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} ZLIB")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   332
    set(ZLIBDIR "${DEPDIR}/zlib")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   333
    set(ZLIB_INCLUDE_DIR "${ZLIBDIR}")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   334
    set(ZLIB_LIBRARIES "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   335
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   336
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   337
        ${ZLIBDIR}/adler32.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   338
        ${ZLIBDIR}/compress.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   339
        ${ZLIBDIR}/crc32.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   340
        ${ZLIBDIR}/deflate.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   341
        ${ZLIBDIR}/infback.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   342
        ${ZLIBDIR}/inffast.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   343
        ${ZLIBDIR}/inflate.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   344
        ${ZLIBDIR}/inftrees.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   345
        ${ZLIBDIR}/trees.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   346
        ${ZLIBDIR}/uncompr.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   347
        ${ZLIBDIR}/zutil.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   348
    )
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   349
endif (NOT ZLIB_FOUND)
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   350
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   351
option (LUGARU_FORCE_INTERNAL_GLU "Force internal libGLU, even if there's a system version" False)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   352
if (LUGARU_FORCE_INTERNAL_GLU)
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   353
	set(OPENGL_GLU_FOUND False)
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   354
endif (LUGARU_FORCE_INTERNAL_GLU)
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   355
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   356
if (NOT OPENGL_GLU_FOUND)
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   357
    message(STATUS "Using internal copy of libGLU")
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   358
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} GLU")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   359
    set(GLUDIR "${DEPDIR}/GLU")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   360
    set(GLU_INCLUDE_DIR "${GLUDIR}")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   361
    set(GLU_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   362
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   363
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   364
        ${GLUDIR}/dict.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   365
        ${GLUDIR}/geom.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   366
        ${GLUDIR}/memalloc.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   367
        ${GLUDIR}/mesh.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   368
        ${GLUDIR}/mipmap.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   369
        ${GLUDIR}/normal.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   370
        ${GLUDIR}/priorityq.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   371
        ${GLUDIR}/render.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   372
        ${GLUDIR}/sweep.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   373
        ${GLUDIR}/tess.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   374
        ${GLUDIR}/tessmono.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   375
        ${GLUDIR}/util.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   376
    )
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   377
endif (NOT OPENGL_GLU_FOUND)
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   378
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   379
option (LUGARU_FORCE_INTERNAL_VORBIS "Force internal Vorbis, even if there's a system version" False)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   380
if (NOT LUGARU_FORCE_INTERNAL_VORBIS)
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   381
    find_package(OggVorbis)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   382
else(NOT LUGARU_FORCE_INTERNAL_VORBIS)
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   383
	set(OGGVORBIS_FOUND False)
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   384
endif (NOT LUGARU_FORCE_INTERNAL_VORBIS)
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   385
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   386
if (NOT OGGVORBIS_FOUND)
182
20ef226ace70 Fixed dependencies, made them optional (so you can override system libs).
Ryan C. Gordon <icculus@icculus.org>
parents: 180
diff changeset
   387
    message(STATUS "Using internal copy of Ogg Vorbis")
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   388
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} OggVorbis")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   389
    set(OGGDIR "${DEPDIR}/libogg")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   390
    set(OGG_INCLUDE_DIR "${OGGDIR}/include")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   391
    set(OGG_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   392
    set(VORBISDIR "${DEPDIR}/libvorbis")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   393
    set(VORBISFILE_INCLUDE_DIR "${VORBISDIR}/include")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   394
    set(VORBISFILE_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   395
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   396
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   397
        ${OGGDIR}/src/bitwise.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   398
        ${OGGDIR}/src/framing.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   399
        ${VORBISDIR}/lib/analysis.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   400
        ${VORBISDIR}/lib/bitrate.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   401
        ${VORBISDIR}/lib/block.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   402
        ${VORBISDIR}/lib/codebook.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   403
        ${VORBISDIR}/lib/envelope.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   404
        ${VORBISDIR}/lib/floor0.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   405
        ${VORBISDIR}/lib/floor1.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   406
        ${VORBISDIR}/lib/info.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   407
        ${VORBISDIR}/lib/lpc.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   408
        ${VORBISDIR}/lib/lsp.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   409
        ${VORBISDIR}/lib/mapping0.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   410
        ${VORBISDIR}/lib/mdct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   411
        ${VORBISDIR}/lib/psy.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   412
        ${VORBISDIR}/lib/registry.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   413
        ${VORBISDIR}/lib/res0.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   414
        ${VORBISDIR}/lib/sharedbook.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   415
        ${VORBISDIR}/lib/smallft.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   416
        ${VORBISDIR}/lib/synthesis.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   417
        ${VORBISDIR}/lib/vorbisfile.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   418
        ${VORBISDIR}/lib/window.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   419
    )
197
f88b3d83e992 Fixed CMake so Force internal actually has a chance at working correctly
Harley Laue <losinggeneration@gmail.com>
parents: 190
diff changeset
   420
endif (NOT OGGVORBIS_FOUND)
103
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
   421
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
   422
include_directories(
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   423
    ${OPENAL_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   424
    ${JPEG_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   425
    ${PNG_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   426
    ${ZLIB_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   427
    ${OPENGL_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   428
    ${GLU_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   429
    ${SDL_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   430
    ${VORBISFILE_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   431
    ${OGG_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   432
    ${CMAKE_SOURCE_DIR}/Source
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   433
)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   434
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   435
set(LUGARU_LIBS ${OPENAL_LIBRARY} ${PNG_LIBRARY} ${JPEG_LIBRARY} ${ZLIB_LIBRARIES} ${SDL_LIBRARY} ${GLU_LIBRARY} ${OPENGL_LIBRARY} ${VORBISFILE_LIBRARY} ${OGG_LIBRARY} ${PLATFORM_LIBS})
103
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
   436
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   437
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   438
if(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   439
    add_executable(lugaru ${LUGARU_SRCS} ${LUGARU_H} lugaru_resource.obj)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   440
else(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   441
    add_executable(lugaru ${LUGARU_SRCS} ${LUGARU_H})
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   442
endif(WIN32)
103
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
   443
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   444
target_link_libraries(lugaru ${LUGARU_LIBS})
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   445
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   446
if(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   447
	add_definitions(-DUSE_OPENAL=1 -DUSE_SDL=1 -DBinIO_STDINT_HEADER=<stdint.h>)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   448
else(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   449
	add_definitions(-DPLATFORM_LINUX=1 -DPLATFORM_UNIX=1 -DUSE_OPENAL=1 -DUSE_SDL=1 -DBinIO_STDINT_HEADER=<stdint.h>)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   450
endif(WIN32)
108
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   451
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   452
# Install target
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   453
if(WIN32)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   454
	install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/Source/lugaru.exe DESTINATION ${CMAKE_INSTALL_PREFIX})
185
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   455
	if(MSVC)
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   456
		install(FILES ${SDLDIR}/lib/win32/msvc/SDL.dll DESTINATION ${CMAKE_INSTALL_PREFIX})
188
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   457
		#install(FILES ${OPENALDIR}/lib/win32/msvc/OpenAL32.dll DESTINATION ${CMAKE_INSTALL_PREFIX}) # FIXME: Add MSVC OpenAL library!
185
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   458
	endif(MSVC)
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   459
	if(MINGW)
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   460
		install(FILES ${SDLDIR}/lib/win32/mingw/SDL.dll DESTINATION ${CMAKE_INSTALL_PREFIX})
188
de6bc7071b0c Added internal OpenAL libs for MinGW on Windows; MSVC internal libs to come soon
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 185
diff changeset
   461
		install(FILES ${OPENALDIR}/lib/win32/mingw/OpenAL32.dll DESTINATION ${CMAKE_INSTALL_PREFIX})
185
426ac9b86fcd Added win32 SDL libraries for MinGW and MSVC; Modified CMake scripts to properly install 'SDL.dll' to install prefix
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 182
diff changeset
   462
	endif(MINGW)
108
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   463
else(WIN32)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   464
	install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/Source/lugaru DESTINATION ${CMAKE_INSTALL_PREFIX})
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   465
endif(WIN32)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   466
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   467
install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${CMAKE_INSTALL_PREFIX})
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   468
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   469
if (LUGARU_MISSING_DEPS)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   470
    message(STATUS "Using our copy of these libs: ${LUGARU_MISSING_DEPS}")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   471
endif (LUGARU_MISSING_DEPS)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   472