8081
|
1 |
find_package(SDL REQUIRED)
|
8079
|
2 |
find_package(SDL_net REQUIRED)
|
8084
|
3 |
find_package(ZLIB REQUIRED)
|
8079
|
4 |
|
8081
|
5 |
add_definitions("-std=c99")
|
8079
|
6 |
|
|
7 |
file(GLOB frontlib_src
|
|
8 |
*.c *.h
|
|
9 |
base64/*.c base64/*.h
|
8100
|
10 |
iniparser/*.c iniparser/*.h
|
8079
|
11 |
ipc/*.c ipc/*.h
|
|
12 |
md5/*.c md5/*.h
|
|
13 |
model/*.c model/*.h
|
|
14 |
net/*.c net/*.h
|
|
15 |
util/*.c util/*.h
|
|
16 |
)
|
|
17 |
|
8081
|
18 |
include_directories(${SDL_INCLUDE_DIR})
|
8079
|
19 |
include_directories(${SDLNET_INCLUDE_DIR})
|
8084
|
20 |
include_directories(${ZLIB_INCLUDE_DIR})
|
8100
|
21 |
include_directories(${CMAKE_SOURCE_DIR}/misc/physfs/src)
|
|
22 |
include_directories(${CMAKE_SOURCE_DIR}/misc/physfs/extras)
|
8079
|
23 |
|
|
24 |
add_library(frontlib STATIC ${frontlib_src})
|