summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2010-10-31 21:51:06 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2010-10-31 21:51:06 +0000
commit687eaac22500440b76c844b6329c823a41047f88 (patch)
tree6f02909d10c8ff7e38457b4a1077355b1586cbb5
parent8ae9b5151f4c054552cc1e4cd16d14861c360a75 (diff)
download2010-netlemmings-687eaac22500440b76c844b6329c823a41047f88.tar.gz
2010-netlemmings-687eaac22500440b76c844b6329c823a41047f88.tar.bz2
2010-netlemmings-687eaac22500440b76c844b6329c823a41047f88.zip
Petites modifs pour tentative de compilation sous Windows.
Bon, il y a encore un problème avec les options -I à la génération des objets : le répertoire include de la lib SDL n'est pas passé au compilateur et du coup, ça chie. git-svn-id: file:///var/svn/2010-netlemmings/trunk@127 077b3477-7977-48bd-8428-443f22f7bfda
-rw-r--r--src/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4b3689d..3082691 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,6 +4,8 @@ project (NetLemmings C)
# The version number.
set (NetLemmings_VERSION_MAJOR 0)
set (NetLemmings_VERSION_MINOR 1)
+
+set(SRC_COMMON events.c game.c utils.c)
# Check if all necessary libs are here
find_package(SDL REQUIRED)
@@ -23,13 +25,12 @@ configure_file (
# add the binary tree to the search path for include files
# so that we will find netlem.h and netlem_ds.h
include_directories("${PROJECT_BINARY_DIR}")
-
add_definitions(-Wall -Wextra -pedantic -Werror -std=c99)
-add_executable(netlem netlem.c events.c game.c utils.c)
+add_executable(netlem WIN32 netlem.c ${SRC_COMMON})
target_link_libraries(netlem SDL SDL_net)
-add_executable(netlem_ds netlem_ds.c events.c game.c utils.c)
+add_executable(netlem_ds WIN32 netlem_ds.c ${SRC_COMMON})
target_link_libraries(netlem_ds SDL SDL_net)