blob: cbab0df6fa3c78d6b00f6f593d80f1ab35a6db23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
set(SRC_COMMON events.c netgame.c timing.c utils.c)
# configure a header file to pass some of the CMake settings
# to the source code
configure_file (
"netlem.h.in"
"${PROJECT_BINARY_DIR}/netlem.h"
)
configure_file (
"netlem_ds.h.in"
"${PROJECT_BINARY_DIR}/netlem_ds.h"
)
add_executable(netlem WIN32 netlem.c ${SRC_COMMON} game.c loader.c graphic.c netlem_state_machine.c parser/lex.yy.c parser/y.tab.c )
target_link_libraries(netlem SDL SDL_net SDL_image)
add_executable(netlem_ds WIN32 netlem_ds.c ${SRC_COMMON} )
target_link_libraries(netlem_ds SDL SDL_net)
|