project_files/frontlib/CMakeLists.txt
author raptor <buckyballreaction@gmail.com>
Tue, 13 Aug 2019 13:10:12 -0600
changeset 15317 5b2dec63f4cf
parent 8084 e723e95c11f1
child 8100 0e6fadf81a2c
permissions -rw-r--r--
Fix compiling on MacOS X by requiring c++11 standard. Building now requires MacOS X 10.8+ and CMake 3.9+

find_package(SDL REQUIRED)
find_package(SDL_net REQUIRED)
find_package(ZLIB REQUIRED)

add_definitions("-std=c99")

file(GLOB frontlib_src
        *.c *.h
        base64/*.c base64/*.h
        ipc/*.c ipc/*.h
        md5/*.c md5/*.h
        model/*.c model/*.h
        net/*.c net/*.h
        util/*.c util/*.h
    )

include_directories(${SDL_INCLUDE_DIR})
include_directories(${SDLNET_INCLUDE_DIR})
include_directories(${ZLIB_INCLUDE_DIR})

add_library(frontlib STATIC ${frontlib_src})