-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (32 loc) · 983 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
project (koules)
cmake_minimum_required (VERSION 3.16)
find_package (SDL REQUIRED)
find_package (SDL_mixer REQUIRED)
include_directories (${SDL_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR})
add_executable (
koules
src/koules.c
src/sound.c
src/menu.c
src/gameplan.c
src/font.c
src/intro.c
src/sdl/SDL_prims.c
src/sdl/init.c
src/sdl/SFont.c
src/framebuffer.c
src/cmap.c
src/rcfiles.c
src/server.c
src/client.c
src/sock.c
src/objectsio.c
)
add_custom_command(TARGET koules POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/sounds $<TARGET_FILE_DIR:koules>/sounds)
add_custom_command(TARGET koules POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/font $<TARGET_FILE_DIR:koules>/font)
add_definitions(-DSDL32BPP -DGCW -DSOUND)
target_link_libraries(koules ${SDL_LIBRARY} ${SDL_MIXER_LIBRARY} -lm)