project_files/frontlib/CMakeLists.txt
changeset 8081 5a7ff368cf01
parent 8079 3f3dd3c9b89e
child 8084 e723e95c11f1
--- a/project_files/frontlib/CMakeLists.txt	Tue Nov 20 21:55:51 2012 +0100
+++ b/project_files/frontlib/CMakeLists.txt	Tue Nov 20 22:08:08 2012 +0100
@@ -1,6 +1,7 @@
+find_package(SDL REQUIRED)
 find_package(SDL_net REQUIRED)
 
-set(CMAKE_C_FLAGS "-std=c99")
+add_definitions("-std=c99")
 
 file(GLOB frontlib_src
         *.c *.h
@@ -12,6 +13,7 @@
         util/*.c util/*.h
     )
 
+include_directories(${SDL_INCLUDE_DIR})
 include_directories(${SDLNET_INCLUDE_DIR})
 
 add_library(frontlib STATIC ${frontlib_src})