CMakeLists.txt
author Ryan C. Gordon <icculus@icculus.org>
Thu, 13 May 2010 14:43:12 -0400
changeset 180 c2da3c58262a
parent 169 98581b294351
child 182 20ef226ace70
permissions -rw-r--r--
Reworked CMakeLists.txt. Now it is all contained in one file, instead of spread over subdirs, and dependencies will fall back to internal versions if they aren't found on the system. This work is still in progress!
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
	${SRCDIR}/MacCompatibility.cpp
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    65
)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    66
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    67
set(LUGARU_H
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    68
	${SRCDIR}/Constants.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    69
	${SRCDIR}/Frustum.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    70
	${SRCDIR}/Game.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    71
	${SRCDIR}/Lights.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    72
	${SRCDIR}/LinkedList.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    73
	${SRCDIR}/MacCompatibility.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    74
	${SRCDIR}/Models.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    75
	${SRCDIR}/Objects.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    76
	${SRCDIR}/Person.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    77
	${SRCDIR}/PhysicsMath.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    78
	${SRCDIR}/Pointer.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    79
	${SRCDIR}/Quaternions.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    80
	${SRCDIR}/Random.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    81
	${SRCDIR}/Skeleton.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    82
	${SRCDIR}/Skybox.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    83
	${SRCDIR}/Sprites.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    84
	${SRCDIR}/TGALoader.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    85
	${SRCDIR}/Terrain.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    86
	${SRCDIR}/Text.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    87
	${SRCDIR}/Weapons.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    88
	${SRCDIR}/WinInput.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    89
	${SRCDIR}/alstubs.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    90
	${SRCDIR}/binio.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    91
	${SRCDIR}/fmod.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    92
	${SRCDIR}/fmod_errors.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    93
	${SRCDIR}/fmod_header.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    94
	${SRCDIR}/fmoddyn.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    95
	${SRCDIR}/gamegl.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    96
	${SRCDIR}/glstubs.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    97
	${SRCDIR}/md5.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    98
	${SRCDIR}/mmgr.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
    99
	${SRCDIR}/nommgr.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   100
	${SRCDIR}/pack_private.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   101
	${SRCDIR}/private.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   102
	${SRCDIR}/unpack_private.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   103
)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   104
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   105
if(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   106
  if(CMAKE_CROSSCOMPILING)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   107
    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
   108
						  COMMAND i686-pc-mingw32-windres
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   109
							  -I${CMAKE_CURRENT_SOURCE_DIR}/res
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   110
							  -o ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   111
							  -i${CMAKE_CURRENT_SOURCE_DIR}/res/lugaru.rc
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   112
					      DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/lugaru.rc
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   113
						  )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   114
  endif(CMAKE_CROSSCOMPILING)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   115
  if(NOT CMAKE_CROSSCOMPILING)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   116
    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
   117
						  COMMAND windres
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   118
							  -I${CMAKE_CURRENT_SOURCE_DIR}/res
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   119
							  -o ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   120
							  -i${CMAKE_CURRENT_SOURCE_DIR}/res/lugaru.rc
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   121
					      DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/lugaru.rc
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   122
						  )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   123
  endif(NOT CMAKE_CROSSCOMPILING)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   124
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   125
  # !!! FIXME: get rid of this.
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   126
  set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   127
	${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   128
	${SRCDIR}/WinDefs.cpp)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   129
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   130
  set(LUGARU_H
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   131
	${LUGARU_H}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   132
	${SRCDIR}/WinDefs.h
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   133
	${SRCDIR}/res/resource.h)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   134
endif(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   135
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   136
if (APPLE)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   137
    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
   138
endif (APPLE)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   139
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   140
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   141
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   142
# Deal with dependencies...
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   143
103
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
   144
find_package(OpenGL REQUIRED)
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   145
# force this include dir no matter what, so we get sane headers.
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   146
set(OPENGL_INCLUDE_DIR "${DEPDIR}/OpenGL")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   147
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   148
find_package(OpenAL REQUIRED)  # !!! FIXME: package a .dll for Windows?
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   149
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   150
find_package(SDL)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   151
if (NOT SDL)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   152
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} SDL")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   153
    message(STATUS "SDL not found, using internal copy")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   154
    set(SDLDIR "${DEPDIR}/SDL12")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   155
    set(SDL_INCLUDE_DIR "${SDLDIR}/include")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   156
    set(SDL_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   157
    if (APPLE)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   158
        set(LUGARU_HAS_INTERNAL_SDL True)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   159
        set(SDL_LIBRARY
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   160
            ${SDLDIR}/lib/macosx/libSDL-1.2.0.dylib
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   161
            ${SDLDIR}/lib/macosx/libSDLmain-osx.a
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   162
        )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   163
    endif (APPLE)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   164
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   165
    if (WINDOWS)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   166
        set(LUGARU_HAS_INTERNAL_SDL True)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   167
        set(SDL_LIBRARY
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   168
            ${SDLDIR}/lib/win32/SDL.lib
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   169
            ${SDLDIR}/lib/win32/SDLmain.lib
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   170
        )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   171
    endif (WINDOWS)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   172
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   173
    if (NOT LUGARU_HAS_INTERNAL_SDL)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   174
        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
   175
    endif (NOT LUGARU_HAS_INTERNAL_SDL)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   176
endif (NOT SDL)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   177
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   178
find_package(PNG)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   179
if (NOT PNG)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   180
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} PNG")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   181
    message(STATUS "libpng not found, using internal copy")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   182
    set(PNGDIR "${DEPDIR}/libpng")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   183
    set(PNG_INCLUDE_DIR "${PNGDIR}")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   184
    set(PNG_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   185
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   186
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   187
        ${PNGDIR}/png.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   188
        ${PNGDIR}/pngerror.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   189
        ${PNGDIR}/pngget.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   190
        ${PNGDIR}/pngmem.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   191
        ${PNGDIR}/pngpread.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   192
        ${PNGDIR}/pngread.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   193
        ${PNGDIR}/pngrio.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   194
        ${PNGDIR}/pngrtran.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   195
        ${PNGDIR}/pngrutil.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   196
        ${PNGDIR}/pngset.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   197
        ${PNGDIR}/pngtrans.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   198
        ${PNGDIR}/pngwio.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   199
        ${PNGDIR}/pngwrite.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   200
        ${PNGDIR}/pngwtran.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   201
        ${PNGDIR}/pngwutil.c
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 (NOT PNG)
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
find_package(JPEG)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   206
if (NOT JPEG)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   207
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} JPEG")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   208
    message(STATUS "libjpeg not found, using internal copy")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   209
    set(JPEGDIR "${DEPDIR}/libjpeg")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   210
    set(JPEG_INCLUDE_DIR "${JPEGDIR}")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   211
    set(JPEG_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   212
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   213
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   214
        ${JPEGDIR}/jdapistd.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   215
        ${JPEGDIR}/jdmaster.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   216
        ${JPEGDIR}/jdapimin.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   217
        ${JPEGDIR}/jcapimin.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   218
        ${JPEGDIR}/jdmerge.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   219
        ${JPEGDIR}/jdatasrc.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   220
        ${JPEGDIR}/jdatadst.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   221
        ${JPEGDIR}/jdcoefct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   222
        ${JPEGDIR}/jdcolor.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   223
        ${JPEGDIR}/jddctmgr.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   224
        ${JPEGDIR}/jdhuff.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   225
        ${JPEGDIR}/jdinput.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   226
        ${JPEGDIR}/jdmainct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   227
        ${JPEGDIR}/jdmarker.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   228
        ${JPEGDIR}/jdpostct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   229
        ${JPEGDIR}/jdsample.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   230
        ${JPEGDIR}/jdtrans.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   231
        ${JPEGDIR}/jerror.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   232
        ${JPEGDIR}/jidctflt.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   233
        ${JPEGDIR}/jidctfst.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   234
        ${JPEGDIR}/jidctint.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   235
        ${JPEGDIR}/jmemmgr.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   236
        ${JPEGDIR}/jutils.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   237
        ${JPEGDIR}/jmemnobs.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   238
        ${JPEGDIR}/jquant1.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   239
        ${JPEGDIR}/jquant2.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   240
        ${JPEGDIR}/jcomapi.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   241
        ${JPEGDIR}/jcmarker.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   242
        ${JPEGDIR}/jcapistd.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   243
        ${JPEGDIR}/jcparam.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   244
        ${JPEGDIR}/jcinit.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   245
        ${JPEGDIR}/jcdctmgr.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   246
        ${JPEGDIR}/jccoefct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   247
        ${JPEGDIR}/jcmainct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   248
        ${JPEGDIR}/jfdctflt.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   249
        ${JPEGDIR}/jfdctint.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   250
        ${JPEGDIR}/jfdctfst.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   251
        ${JPEGDIR}/jchuff.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   252
        ${JPEGDIR}/jcsample.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   253
        ${JPEGDIR}/jcmaster.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   254
        ${JPEGDIR}/jccolor.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   255
        ${JPEGDIR}/jcprepct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   256
        ${JPEGDIR}/jcarith.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   257
        ${JPEGDIR}/jdarith.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   258
        ${JPEGDIR}/jaricom.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   259
    )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   260
endif (NOT JPEG)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   261
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   262
find_package(ZLIB)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   263
if (NOT ZLIB)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   264
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} ZLIB")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   265
    message(STATUS "zlib not found, using internal copy")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   266
    set(ZLIBDIR "${DEPDIR}/zlib")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   267
    set(ZLIB_INCLUDE_DIR "${ZLIBDIR}")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   268
    set(ZLIB_LIBRARIES "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   269
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   270
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   271
        ${ZLIBDIR}/adler32.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   272
        ${ZLIBDIR}/compress.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   273
        ${ZLIBDIR}/crc32.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   274
        ${ZLIBDIR}/deflate.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   275
        ${ZLIBDIR}/infback.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   276
        ${ZLIBDIR}/inffast.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   277
        ${ZLIBDIR}/inflate.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   278
        ${ZLIBDIR}/inftrees.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   279
        ${ZLIBDIR}/trees.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   280
        ${ZLIBDIR}/uncompr.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   281
        ${ZLIBDIR}/zutil.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   282
    )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   283
endif (NOT ZLIB)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   284
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   285
find_package(GLU)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   286
if (NOT GLU)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   287
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} GLU")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   288
    message(STATUS "GLU not found, using internal copy")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   289
    set(GLUDIR "${DEPDIR}/GLU")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   290
    set(GLU_INCLUDE_DIR "${GLUDIR}")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   291
    set(GLU_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   292
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   293
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   294
        ${GLUDIR}/dict.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   295
        ${GLUDIR}/geom.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   296
        ${GLUDIR}/memalloc.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   297
        ${GLUDIR}/mesh.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   298
        ${GLUDIR}/mipmap.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   299
        ${GLUDIR}/normal.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   300
        ${GLUDIR}/priorityq.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   301
        ${GLUDIR}/render.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   302
        ${GLUDIR}/sweep.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   303
        ${GLUDIR}/tess.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   304
        ${GLUDIR}/tessmono.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   305
        ${GLUDIR}/util.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   306
    )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   307
endif (NOT GLU)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   308
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   309
find_package(OggVorbis)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   310
if (NOT OggVorbis)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   311
    set(LUGARU_MISSING_DEPS "${LUGARU_MISSING_DEPS} OggVorbis")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   312
    message(STATUS "Ogg Vorbis not found, using internal copy")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   313
    set(OGGDIR "${DEPDIR}/libogg")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   314
    set(OGG_INCLUDE_DIR "${OGGDIR}/include")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   315
    set(OGG_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   316
    set(VORBISDIR "${DEPDIR}/libvorbis")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   317
    set(VORBISFILE_INCLUDE_DIR "${VORBISDIR}/include")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   318
    set(VORBISFILE_LIBRARY "")
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   319
    set(LUGARU_SRCS
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   320
        ${LUGARU_SRCS}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   321
        ${OGGDIR}/src/bitwise.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   322
        ${OGGDIR}/src/framing.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   323
        ${VORBISDIR}/lib/analysis.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   324
        ${VORBISDIR}/lib/bitrate.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   325
        ${VORBISDIR}/lib/block.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   326
        ${VORBISDIR}/lib/codebook.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   327
        ${VORBISDIR}/lib/envelope.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   328
        ${VORBISDIR}/lib/floor0.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   329
        ${VORBISDIR}/lib/floor1.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   330
        ${VORBISDIR}/lib/info.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   331
        ${VORBISDIR}/lib/lpc.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   332
        ${VORBISDIR}/lib/lsp.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   333
        ${VORBISDIR}/lib/mapping0.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   334
        ${VORBISDIR}/lib/mdct.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   335
        ${VORBISDIR}/lib/psy.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   336
        ${VORBISDIR}/lib/registry.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   337
        ${VORBISDIR}/lib/res0.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   338
        ${VORBISDIR}/lib/sharedbook.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   339
        ${VORBISDIR}/lib/smallft.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   340
        ${VORBISDIR}/lib/synthesis.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   341
        ${VORBISDIR}/lib/vorbisfile.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   342
        ${VORBISDIR}/lib/window.c
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   343
    )
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   344
endif (NOT OggVorbis)
103
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
   345
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
   346
include_directories(
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   347
    ${OPENAL_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   348
    ${JPEG_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   349
    ${PNG_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   350
    ${ZLIB_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   351
    ${OPENGL_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   352
    ${GLU_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   353
    ${SDL_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   354
    ${VORBISFILE_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   355
    ${OGG_INCLUDE_DIR}
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   356
    ${CMAKE_SOURCE_DIR}/Source
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   357
)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   358
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   359
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
   360
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   361
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   362
if(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   363
    add_executable(lugaru ${LUGARU_SRCS} ${LUGARU_H} lugaru_resource.obj)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   364
else(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   365
    add_executable(lugaru ${LUGARU_SRCS} ${LUGARU_H})
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   366
endif(WIN32)
103
e58c73e8c0f1 Quickly created CMake to build the source
Harley Laue <losinggeneration@gmail.com>
parents:
diff changeset
   367
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   368
target_link_libraries(lugaru ${LUGARU_LIBS})
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   369
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   370
if(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   371
	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
   372
else(WIN32)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   373
	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
   374
endif(WIN32)
108
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   375
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   376
# Install target
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   377
if(WIN32)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   378
	install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/Source/lugaru.exe DESTINATION ${CMAKE_INSTALL_PREFIX})
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   379
else(WIN32)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   380
	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
   381
endif(WIN32)
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   382
5c75adc4301e Added support for 'make install' target in CMake scripts
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 106
diff changeset
   383
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
   384
180
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   385
if (LUGARU_MISSING_DEPS)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   386
    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
   387
endif (LUGARU_MISSING_DEPS)
c2da3c58262a Reworked CMakeLists.txt.
Ryan C. Gordon <icculus@icculus.org>
parents: 169
diff changeset
   388