frontlib paths
authorkoda
Tue, 20 Nov 2012 22:08:08 +0100
changeset 8081 5a7ff368cf01
parent 8080 a6fc5396b3d6
child 8082 675372256a01
frontlib paths
project_files/frontlib/CMakeLists.txt
--- 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})