CMakeLists.txt
author Ryan C. Gordon <icculus@icculus.org>
Wed, 03 Feb 2010 23:14:11 -0500
branchstable-2.0
changeset 1048 22b96d39d1a2
parent 1043 44865546c38b
child 1082 94771621792f
permissions -rw-r--r--
Catch case where we use the Unix code on a non-Unix system that lacks pthreads. Thanks, Patrice! (transplanted from 18ae36a7f55bcca606f7d7d5f745f4d9b95e0840)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
# PhysicsFS; a portable, flexible file i/o abstraction.
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
# Copyright (C) 2007  Ryan C. Gordon.
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
#
809
116b8fe30371 Renamed LICENSE to LICENSE.txt
Ryan C. Gordon <icculus@icculus.org>
parents: 805
diff changeset
     4
# Please see the file LICENSE.txt in the source's root directory.
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
804
45c29325e017 Added install targets for "make install"
Ryan C. Gordon <icculus@icculus.org>
parents: 803
diff changeset
     6
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
45c29325e017 Added install targets for "make install"
Ryan C. Gordon <icculus@icculus.org>
parents: 803
diff changeset
     7
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
PROJECT(PhysicsFS)
956
3da716cfe09f Upped version to 2.0.0!
Ryan C. Gordon <icculus@icculus.org>
parents: 952
diff changeset
     9
SET(PHYSFS_VERSION 2.0.0)
950
7bb0b0d26479 Corrected soname.
Ryan C. Gordon <icculus@icculus.org>
parents: 919
diff changeset
    10
7bb0b0d26479 Corrected soname.
Ryan C. Gordon <icculus@icculus.org>
parents: 919
diff changeset
    11
# Increment this if/when we break backwards compatibility.
952
bbe76b085d4d Screw it, change this back.
Ryan C. Gordon <icculus@icculus.org>
parents: 950
diff changeset
    12
SET(PHYSFS_SOVERSION 1)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    13
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
# I hate that they define "WIN32" ... we're about to move to Win64...I hope!
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
IF(WIN32 AND NOT WINDOWS)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    16
    SET(WINDOWS TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    17
ENDIF(WIN32 AND NOT WINDOWS)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    19
# Bleh, let's do it for "APPLE" too.
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    20
IF(APPLE AND NOT MACOSX)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    21
    SET(MACOSX TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    22
ENDIF(APPLE AND NOT MACOSX)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    23
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    24
INCLUDE(CheckIncludeFile)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    25
INCLUDE(CheckLibraryExists)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    26
INCLUDE(CheckCSourceCompiles)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    27
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    28
INCLUDE_DIRECTORIES(.)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    29
#INCLUDE_DIRECTORIES(platform)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    30
#INCLUDE_DIRECTORIES(archivers)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    31
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    32
IF(MACOSX)
803
4b1e0994ab97 Clarified a comment.
Ryan C. Gordon <icculus@icculus.org>
parents: 802
diff changeset
    33
    # Fallback to older OS X on PowerPC to support wider range of systems...
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    34
    IF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
801
a6d25b52f2c7 Fixes to CMakeLists.txt for Intel Mac.
Ryan C. Gordon <icculus@icculus.org>
parents: 799
diff changeset
    35
        ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020)
a6d25b52f2c7 Fixes to CMakeLists.txt for Intel Mac.
Ryan C. Gordon <icculus@icculus.org>
parents: 799
diff changeset
    36
        SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -mmacosx-version-min=10.2")
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    37
    ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
803
4b1e0994ab97 Clarified a comment.
Ryan C. Gordon <icculus@icculus.org>
parents: 802
diff changeset
    38
4b1e0994ab97 Clarified a comment.
Ryan C. Gordon <icculus@icculus.org>
parents: 802
diff changeset
    39
    # Need these everywhere...
4b1e0994ab97 Clarified a comment.
Ryan C. Gordon <icculus@icculus.org>
parents: 802
diff changeset
    40
    ADD_DEFINITIONS(-fno-common)
801
a6d25b52f2c7 Fixes to CMakeLists.txt for Intel Mac.
Ryan C. Gordon <icculus@icculus.org>
parents: 799
diff changeset
    41
    SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -framework Carbon -framework IOKit")
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    42
ENDIF(MACOSX)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    43
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    44
# Add some gcc-specific command lines.
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    45
IF(CMAKE_COMPILER_IS_GNUCC)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    46
    # Always build with debug symbols...you can strip it later.
821
c7dd97edaa4e Fixes for BeOS and gcc2.
Ryan C. Gordon <icculus@icculus.org>
parents: 818
diff changeset
    47
    ADD_DEFINITIONS(-g -pipe -Werror -fsigned-char)
c7dd97edaa4e Fixes for BeOS and gcc2.
Ryan C. Gordon <icculus@icculus.org>
parents: 818
diff changeset
    48
c7dd97edaa4e Fixes for BeOS and gcc2.
Ryan C. Gordon <icculus@icculus.org>
parents: 818
diff changeset
    49
    # Stupid BeOS generates warnings in the system headers.
c7dd97edaa4e Fixes for BeOS and gcc2.
Ryan C. Gordon <icculus@icculus.org>
parents: 818
diff changeset
    50
    IF(NOT BEOS)
c7dd97edaa4e Fixes for BeOS and gcc2.
Ryan C. Gordon <icculus@icculus.org>
parents: 818
diff changeset
    51
        ADD_DEFINITIONS(-Wall)
c7dd97edaa4e Fixes for BeOS and gcc2.
Ryan C. Gordon <icculus@icculus.org>
parents: 818
diff changeset
    52
    ENDIF(NOT BEOS)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    53
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    54
    CHECK_C_SOURCE_COMPILES("
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    55
        #if ((defined(__GNUC__)) && (__GNUC__ >= 4))
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    56
        int main(int argc, char **argv) { int is_gcc4 = 1; return 0; }
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    57
        #else
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    58
        #error This is not gcc4.
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    59
        #endif
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    60
    " PHYSFS_IS_GCC4)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    61
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    62
    IF(PHYSFS_IS_GCC4)
1010
13f24148b2bb Don't use -fvisibility=hidden on several platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 1007
diff changeset
    63
        # Not supported on several operating systems at this time.
13f24148b2bb Don't use -fvisibility=hidden on several platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 1007
diff changeset
    64
        IF(NOT OS2 AND NOT SOLARIS AND NOT WINDOWS)
13f24148b2bb Don't use -fvisibility=hidden on several platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 1007
diff changeset
    65
             ADD_DEFINITIONS(-fvisibility=hidden)
13f24148b2bb Don't use -fvisibility=hidden on several platforms.
Ryan C. Gordon <icculus@icculus.org>
parents: 1007
diff changeset
    66
        ENDIF(NOT OS2 AND NOT SOLARIS AND NOT WINDOWS)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    67
    ENDIF(PHYSFS_IS_GCC4)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    68
ENDIF(CMAKE_COMPILER_IS_GNUCC)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    69
836
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 833
diff changeset
    70
IF(MSVC)
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 833
diff changeset
    71
    # VS.NET 8.0 got really really anal about strcpy, etc, which even if we
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 833
diff changeset
    72
    #  cleaned up our code, zlib, etc still use...so disable the warning.
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 833
diff changeset
    73
    ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS=1)
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 833
diff changeset
    74
ENDIF(MSVC)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    75
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    76
# Basic chunks of source code ...
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    77
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    78
SET(ZLIB_SRCS
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    79
    zlib123/adler32.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    80
    zlib123/compress.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    81
    zlib123/crc32.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    82
    zlib123/deflate.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    83
    zlib123/gzio.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    84
    zlib123/infback.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    85
    zlib123/inffast.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    86
    zlib123/inflate.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    87
    zlib123/inftrees.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    88
    zlib123/trees.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    89
    zlib123/uncompr.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    90
    zlib123/zutil.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    91
)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    92
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    93
SET(LZMA_SRCS
919
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
    94
    lzma/C/7zCrc.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
    95
    lzma/C/Archive/7z/7zBuffer.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
    96
    lzma/C/Archive/7z/7zDecode.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
    97
    lzma/C/Archive/7z/7zExtract.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
    98
    lzma/C/Archive/7z/7zHeader.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
    99
    lzma/C/Archive/7z/7zIn.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
   100
    lzma/C/Archive/7z/7zItem.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
   101
    lzma/C/Archive/7z/7zMethodID.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
   102
    lzma/C/Compress/Branch/BranchX86.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
   103
    lzma/C/Compress/Branch/BranchX86_2.c
932b44ae8335 Updated for lzma changes.
Ryan C. Gordon <icculus@icculus.org>
parents: 885
diff changeset
   104
    lzma/C/Compress/Lzma/LzmaDecode.c
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   105
)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   106
818
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   107
IF(BEOS)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   108
    # We add this explicitly, since we don't want CMake to think this
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   109
    #  is a C++ project unless we're on BeOS.
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   110
    SET(PHYSFS_BEOS_SRCS platform/beos.cpp)
821
c7dd97edaa4e Fixes for BeOS and gcc2.
Ryan C. Gordon <icculus@icculus.org>
parents: 818
diff changeset
   111
    SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} be root)
818
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   112
ENDIF(BEOS)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   113
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   114
# Almost everything is "compiled" here, but things that don't apply to the
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   115
#  build are #ifdef'd out. This is to make it easy to embed PhysicsFS into
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   116
#  another project or bring up a new build system: just compile all the source
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   117
#  code and #define the things you want.
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   118
SET(PHYSFS_SRCS
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   119
    physfs.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   120
    physfs_byteorder.c
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   121
    physfs_unicode.c
818
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   122
    platform/os2.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   123
    platform/pocketpc.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   124
    platform/posix.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   125
    platform/unix.c
847
5e5e6c067413 Split out Mac OS X code from unix.c and added some Carbon-specific code...
Ryan C. Gordon <icculus@icculus.org>
parents: 836
diff changeset
   126
    platform/macosx.c
818
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   127
    platform/windows.c
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   128
    archivers/dir.c
818
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   129
    archivers/grp.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   130
    archivers/hog.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   131
    archivers/lzma.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   132
    archivers/mvl.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   133
    archivers/qpak.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   134
    archivers/wad.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   135
    archivers/zip.c
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   136
    ${PHYSFS_BEOS_SRCS}
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   137
)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   138
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   139
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   140
# platform layers ...
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   141
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   142
IF(UNIX)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   143
    IF(BEOS)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   144
        SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
818
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   145
        SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   146
        SET(HAVE_PTHREAD_H TRUE)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   147
    ELSE(BEOS)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   148
        # !!! FIXME
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   149
        #  AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   150
        CHECK_INCLUDE_FILE(sys/ucred.h HAVE_UCRED_H)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   151
        IF(HAVE_UCRED_H)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   152
            ADD_DEFINITIONS(-DPHYSFS_HAVE_SYS_UCRED_H=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   153
            SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   154
        ENDIF(HAVE_UCRED_H)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   155
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   156
        CHECK_INCLUDE_FILE(mntent.h HAVE_MNTENT_H)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   157
        IF(HAVE_MNTENT_H)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   158
            ADD_DEFINITIONS(-DPHYSFS_HAVE_MNTENT_H=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   159
            SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   160
        ENDIF(HAVE_MNTENT_H)
818
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   161
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   162
        CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   163
        IF(HAVE_PTHREAD_H)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   164
            SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   165
        ENDIF(HAVE_PTHREAD_H)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   166
    ENDIF(BEOS)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   167
ENDIF(UNIX)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   168
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   169
IF(WINDOWS)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   170
    SET(PHYSFS_HAVE_CDROM_SUPPORT TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   171
    SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   172
ENDIF(WINDOWS)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   173
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   174
IF(NOT PHYSFS_HAVE_CDROM_SUPPORT)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   175
    ADD_DEFINITIONS(-DPHYSFS_NO_CDROM_SUPPORT=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   176
    MESSAGE(WARNING " ***")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   177
    MESSAGE(WARNING " *** There is no CD-ROM support in this build!")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   178
    MESSAGE(WARNING " *** PhysicsFS will just pretend there are no discs.")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   179
    MESSAGE(WARNING " *** This may be fine, depending on how PhysicsFS is used,")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   180
    MESSAGE(WARNING " ***   but is this what you REALLY wanted?")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   181
    MESSAGE(WARNING " *** (Maybe fix CMakeLists.txt, or write a platform driver?)")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   182
    MESSAGE(WARNING " ***")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   183
ENDIF(NOT PHYSFS_HAVE_CDROM_SUPPORT)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   184
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   185
IF(PHYSFS_HAVE_THREAD_SUPPORT)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   186
    ADD_DEFINITIONS(-D_REENTRANT -D_THREAD_SAFE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   187
ELSE(PHYSFS_HAVE_THREAD_SUPPORT)
1048
22b96d39d1a2 Catch case where we use the Unix code on a non-Unix system that lacks pthreads.
Ryan C. Gordon <icculus@icculus.org>
parents: 1043
diff changeset
   188
    ADD_DEFINITIONS(-DPHYSFS_NO_THREAD_SUPPORT=1)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   189
    MESSAGE(WARNING " ***")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   190
    MESSAGE(WARNING " *** There is no thread support in this build!")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   191
    MESSAGE(WARNING " *** PhysicsFS will NOT be reentrant!")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   192
    MESSAGE(WARNING " *** This may be fine, depending on how PhysicsFS is used,")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   193
    MESSAGE(WARNING " ***   but is this what you REALLY wanted?")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   194
    MESSAGE(WARNING " *** (Maybe fix CMakeLists.txt, or write a platform driver?)")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   195
    MESSAGE(WARNING " ***")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   196
ENDIF(PHYSFS_HAVE_THREAD_SUPPORT)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   197
818
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   198
CHECK_INCLUDE_FILE(assert.h HAVE_ASSERT_H)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   199
IF(HAVE_ASSERT_H)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   200
    ADD_DEFINITIONS(-DHAVE_ASSERT_H=1)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   201
ENDIF(HAVE_ASSERT_H)
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   202
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   203
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   204
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   205
# Archivers ...
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   206
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   207
OPTION(PHYSFS_ARCHIVE_ZIP "Enable ZIP support" TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   208
IF(PHYSFS_ARCHIVE_ZIP)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   209
    ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_ZIP=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   210
    SET(PHYSFS_NEED_ZLIB TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   211
ENDIF(PHYSFS_ARCHIVE_ZIP)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   212
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   213
OPTION(PHYSFS_ARCHIVE_7Z "Enable 7zip support" TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   214
IF(PHYSFS_ARCHIVE_7Z)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   215
    ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_7Z=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   216
    # !!! FIXME: rename to 7z.c?
818
e36f23f49042 Now compiles everything whether we need it or not, removing whole files with
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
   217
    SET(PHYSFS_SRCS ${PHYSFS_SRCS} ${LZMA_SRCS})
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   218
ENDIF(PHYSFS_ARCHIVE_7Z)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   219
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   220
OPTION(PHYSFS_ARCHIVE_GRP "Enable Build Engine GRP support" TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   221
IF(PHYSFS_ARCHIVE_GRP)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   222
    ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_GRP=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   223
ENDIF(PHYSFS_ARCHIVE_GRP)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   224
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   225
OPTION(PHYSFS_ARCHIVE_WAD "Enable Doom WAD support" TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   226
IF(PHYSFS_ARCHIVE_WAD)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   227
    ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_WAD=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   228
ENDIF(PHYSFS_ARCHIVE_WAD)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   229
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   230
OPTION(PHYSFS_ARCHIVE_HOG "Enable Descent I/II HOG support" TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   231
IF(PHYSFS_ARCHIVE_HOG)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   232
    ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_HOG=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   233
ENDIF(PHYSFS_ARCHIVE_HOG)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   234
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   235
OPTION(PHYSFS_ARCHIVE_MVL "Enable Descent I/II MVL support" TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   236
IF(PHYSFS_ARCHIVE_MVL)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   237
    ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_MVL=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   238
ENDIF(PHYSFS_ARCHIVE_MVL)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   239
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   240
OPTION(PHYSFS_ARCHIVE_QPAK "Enable Quake I/II QPAK support" TRUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   241
IF(PHYSFS_ARCHIVE_QPAK)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   242
    ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_QPAK=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   243
ENDIF(PHYSFS_ARCHIVE_QPAK)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   244
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   245
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   246
# See if some archiver required zlib, and see about using system version.
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   247
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   248
IF(PHYSFS_NEED_ZLIB)
1007
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   249
    FIND_PACKAGE(ZLIB)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   250
1007
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   251
    IF(ZLIB_FOUND)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   252
        OPTION(PHYSFS_INTERNAL_ZLIB "Link own zlib instead of system library" FALSE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   253
    ELSE(HAVE_SYSTEM_ZLIB)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   254
        SET(PHYSFS_INTERNAL_ZLIB TRUE)
1007
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   255
    ENDIF(ZLIB_FOUND)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   256
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   257
    IF(PHYSFS_INTERNAL_ZLIB)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   258
        INCLUDE_DIRECTORIES(zlib123)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   259
        ADD_DEFINITIONS(-DZ_PREFIX=1)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   260
        SET(PHYSFS_SRCS ${PHYSFS_SRCS} ${ZLIB_SRCS})
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   261
    ELSE(PHYSFS_INTERNAL_ZLIB)
1007
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   262
        SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${ZLIB_LIBRARY})
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   263
        INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   264
    ENDIF(PHYSFS_INTERNAL_ZLIB)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   265
ENDIF(PHYSFS_NEED_ZLIB)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   266
802
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   267
OPTION(PHYSFS_BUILD_STATIC "Build static library" TRUE)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   268
IF(PHYSFS_BUILD_STATIC)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   269
    ADD_LIBRARY(physfs-static STATIC ${PHYSFS_SRCS})
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   270
    SET_TARGET_PROPERTIES(physfs-static PROPERTIES OUTPUT_NAME "physfs")
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   271
    SET(PHYSFS_LIB_TARGET physfs-static)
833
b260f190aa59 Whoops, switched two strings in CMakeLists.txt
Ryan C. Gordon <icculus@icculus.org>
parents: 827
diff changeset
   272
    SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
802
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   273
ENDIF(PHYSFS_BUILD_STATIC)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   274
802
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   275
OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   276
IF(PHYSFS_BUILD_SHARED)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   277
    ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
805
b462f06edbca Install libraries with a VERSION and SOVERSION.
Ryan C. Gordon <icculus@icculus.org>
parents: 804
diff changeset
   278
    SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
b462f06edbca Install libraries with a VERSION and SOVERSION.
Ryan C. Gordon <icculus@icculus.org>
parents: 804
diff changeset
   279
    SET_TARGET_PROPERTIES(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
802
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   280
    TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   281
    SET(PHYSFS_LIB_TARGET physfs)
833
b260f190aa59 Whoops, switched two strings in CMakeLists.txt
Ryan C. Gordon <icculus@icculus.org>
parents: 827
diff changeset
   282
    SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs")
802
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   283
ENDIF(PHYSFS_BUILD_SHARED)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   284
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   285
IF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   286
    MESSAGE(FATAL "Both shared and static libraries are disabled!")
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   287
ENDIF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   288
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   289
# CMake FAQ says I need this...
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   290
IF(PHYSFS_BUILD_SHARED AND PHYSFS_BUILD_STATIC)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   291
    SET_TARGET_PROPERTIES(physfs PROPERTIES CLEAN_DIRECT_OUTPUT 1)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   292
    SET_TARGET_PROPERTIES(physfs-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   293
ENDIF(PHYSFS_BUILD_SHARED AND PHYSFS_BUILD_STATIC)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   294
878
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   295
OPTION(PHYSFS_BUILD_TEST "Build stdio test program." TRUE)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   296
MARK_AS_ADVANCED(PHYSFS_BUILD_TEST)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   297
IF(PHYSFS_BUILD_TEST)
1007
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   298
    FIND_PATH(READLINE_H readline/readline.h)
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   299
    FIND_PATH(HISTORY_H readline/history.h)
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   300
    IF(READLINE_H AND HISTORY_H)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   301
        SET(CMAKE_REQUIRED_LIBRARIES curses)
1007
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   302
        FIND_LIBRARY(READLINE_LIBRARY readline)
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   303
        FIND_LIBRARY(HISTORY_LIBRARY history)
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   304
        IF(READLINE_LIBRARY AND HISTORY_LIBRARY)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   305
            SET(HAVE_SYSTEM_READLINE TRUE)
1007
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   306
            SET(TEST_PHYSFS_LIBS ${TEST_PHYSFS_LIBS} ${READLINE_LIBRARY} ${CURSES_LIBRARY})
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   307
            INCLUDE_DIRECTORIES(${READLINE_H} ${HISTORY_H})
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   308
            ADD_DEFINITIONS(-DPHYSFS_HAVE_READLINE=1)
1007
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   309
        ENDIF(READLINE_LIBRARY AND HISTORY_LIBRARY)
d6729def6251 Merged changeset 1005:cafe3867784c from default branch: cross-compile fixes.
Ryan C. Gordon <icculus@icculus.org>
parents: 956
diff changeset
   310
    ENDIF(READLINE_H AND HISTORY_H)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   311
    ADD_EXECUTABLE(test_physfs test/test_physfs.c)
802
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   312
    TARGET_LINK_LIBRARIES(test_physfs ${PHYSFS_LIB_TARGET} ${TEST_PHYSFS_LIBS} ${OTHER_LDFLAGS})
804
45c29325e017 Added install targets for "make install"
Ryan C. Gordon <icculus@icculus.org>
parents: 803
diff changeset
   313
    SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";test_physfs")
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   314
ENDIF(PHYSFS_BUILD_TEST)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   315
878
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   316
OPTION(PHYSFS_BUILD_WX_TEST "Build wxWidgets test program." TRUE)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   317
MARK_AS_ADVANCED(PHYSFS_BUILD_WX_TEST)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   318
IF(PHYSFS_BUILD_WX_TEST)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   319
    SET(wxWidgets_USE_LIBS base core adv)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   320
    SET(wxWidgets_INCLUDE_DIRS_NO_SYSTEM 1)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   321
    FIND_PACKAGE(wxWidgets)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   322
    IF(wxWidgets_FOUND)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   323
        INCLUDE(${wxWidgets_USE_FILE})
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   324
        ADD_EXECUTABLE(wxtest_physfs test/wxtest_physfs.cpp)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   325
        SET_SOURCE_FILES_PROPERTIES(test/wxtest_physfs.cpp COMPILE_FLAGS ${wxWidgets_CXX_FLAGS})
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   326
        TARGET_LINK_LIBRARIES(wxtest_physfs ${PHYSFS_LIB_TARGET} ${wxWidgets_LIBRARIES} ${OTHER_LDFLAGS})
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   327
        SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";wxtest_physfs")
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   328
    ELSE(wxWidgets_FOUND)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   329
        MESSAGE(STATUS "wxWidgets not found. Disabling wx test app.")
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   330
        SET(PHYSFS_BUILD_WX_TEST FALSE)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   331
    ENDIF(wxWidgets_FOUND)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   332
ENDIF(PHYSFS_BUILD_WX_TEST)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   333
804
45c29325e017 Added install targets for "make install"
Ryan C. Gordon <icculus@icculus.org>
parents: 803
diff changeset
   334
INSTALL(TARGETS ${PHYSFS_INSTALL_TARGETS}
45c29325e017 Added install targets for "make install"
Ryan C. Gordon <icculus@icculus.org>
parents: 803
diff changeset
   335
        RUNTIME DESTINATION bin
45c29325e017 Added install targets for "make install"
Ryan C. Gordon <icculus@icculus.org>
parents: 803
diff changeset
   336
        LIBRARY DESTINATION lib
45c29325e017 Added install targets for "make install"
Ryan C. Gordon <icculus@icculus.org>
parents: 803
diff changeset
   337
        ARCHIVE DESTINATION lib)
45c29325e017 Added install targets for "make install"
Ryan C. Gordon <icculus@icculus.org>
parents: 803
diff changeset
   338
INSTALL(FILES physfs.h DESTINATION include)
45c29325e017 Added install targets for "make install"
Ryan C. Gordon <icculus@icculus.org>
parents: 803
diff changeset
   339
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   340
FIND_PACKAGE(Doxygen)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   341
IF(DOXYGEN_FOUND)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   342
    ADD_CUSTOM_TARGET(docs ${DOXYGEN_EXECUTABLE} COMMENT "Building documentation")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   343
ELSE(DOXYGEN_FOUND)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   344
    MESSAGE(STATUS "Doxygen not found. You won't be able to build documentation.")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   345
ENDIF(DOXYGEN_FOUND)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   346
885
e1fe7fe85939 Added a hack for "make dist" functionality.
Ryan C. Gordon <icculus@icculus.org>
parents: 878
diff changeset
   347
IF(UNIX)
1043
44865546c38b Merged 1042:dc9291957a5a from default branch: make dist fix.
Ryan C. Gordon <icculus@icculus.org>
parents: 1010
diff changeset
   348
    SET(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.gz")
44865546c38b Merged 1042:dc9291957a5a from default branch: make dist fix.
Ryan C. Gordon <icculus@icculus.org>
parents: 1010
diff changeset
   349
    ADD_CUSTOM_TARGET(
44865546c38b Merged 1042:dc9291957a5a from default branch: make dist fix.
Ryan C. Gordon <icculus@icculus.org>
parents: 1010
diff changeset
   350
        dist
44865546c38b Merged 1042:dc9291957a5a from default branch: make dist fix.
Ryan C. Gordon <icculus@icculus.org>
parents: 1010
diff changeset
   351
        hg archive -t tgz "${PHYSFS_TARBALL}"
44865546c38b Merged 1042:dc9291957a5a from default branch: make dist fix.
Ryan C. Gordon <icculus@icculus.org>
parents: 1010
diff changeset
   352
        WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
44865546c38b Merged 1042:dc9291957a5a from default branch: make dist fix.
Ryan C. Gordon <icculus@icculus.org>
parents: 1010
diff changeset
   353
        COMMENT "Building source tarball '${PHYSFS_TARBALL}'..."
44865546c38b Merged 1042:dc9291957a5a from default branch: make dist fix.
Ryan C. Gordon <icculus@icculus.org>
parents: 1010
diff changeset
   354
    )
885
e1fe7fe85939 Added a hack for "make dist" functionality.
Ryan C. Gordon <icculus@icculus.org>
parents: 878
diff changeset
   355
ENDIF(UNIX)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   356
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   357
MACRO(MESSAGE_BOOL_OPTION _NAME _VALUE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   358
    IF(${_VALUE})
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   359
        MESSAGE(STATUS "  ${_NAME}: enabled")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   360
    ELSE(${_VALUE})
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   361
        MESSAGE(STATUS "  ${_NAME}: disabled")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   362
    ENDIF(${_VALUE})
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   363
ENDMACRO(MESSAGE_BOOL_OPTION)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   364
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   365
MESSAGE(STATUS "PhysicsFS will build with the following options:")
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   366
MESSAGE_BOOL_OPTION("ZIP support" PHYSFS_ARCHIVE_ZIP)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   367
MESSAGE_BOOL_OPTION("7zip support" PHYSFS_ARCHIVE_7Z)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   368
MESSAGE_BOOL_OPTION("GRP support" PHYSFS_ARCHIVE_GRP)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   369
MESSAGE_BOOL_OPTION("WAD support" PHYSFS_ARCHIVE_WAD)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   370
MESSAGE_BOOL_OPTION("HOG support" PHYSFS_ARCHIVE_HOG)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   371
MESSAGE_BOOL_OPTION("MVL support" PHYSFS_ARCHIVE_MVL)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   372
MESSAGE_BOOL_OPTION("QPAK support" PHYSFS_ARCHIVE_QPAK)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   373
MESSAGE_BOOL_OPTION("CD-ROM drive support" PHYSFS_HAVE_CDROM_SUPPORT)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   374
MESSAGE_BOOL_OPTION("Thread safety" PHYSFS_HAVE_THREAD_SUPPORT)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   375
MESSAGE_BOOL_OPTION("Build own zlib" PHYSFS_INTERNAL_ZLIB)
802
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   376
MESSAGE_BOOL_OPTION("Build static library" PHYSFS_BUILD_STATIC)
d04103af68a5 Can now build shared or static (or both) libraries.
Ryan C. Gordon <icculus@icculus.org>
parents: 801
diff changeset
   377
MESSAGE_BOOL_OPTION("Build shared library" PHYSFS_BUILD_SHARED)
878
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   378
MESSAGE_BOOL_OPTION("Build wxWidgets test program" PHYSFS_BUILD_WX_TEST)
6d65c5e0049a Added initial work on a wxWidgets-based test app.
Ryan C. Gordon <icculus@icculus.org>
parents: 847
diff changeset
   379
MESSAGE_BOOL_OPTION("Build stdio test program" PHYSFS_BUILD_TEST)
798
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   380
IF(PHYSFS_BUILD_TEST)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   381
    MESSAGE_BOOL_OPTION("  Use readline in test program" HAVE_SYSTEM_READLINE)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   382
ENDIF(PHYSFS_BUILD_TEST)
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   383
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   384
# end of CMakeLists.txt ...
18455baab480 Moved to CMake!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   385