added definitions of sdl cflags
authorRafa Gaitán <rgaitan@crysis.(none)>
Mon, 7 Dec 2009 19:24:09 +0000 (20:24 +0100)
committerRafa Gaitán <rgaitan@crysis.(none)>
Mon, 7 Dec 2009 19:24:09 +0000 (20:24 +0100)
CMakeLists.txt

index 071be0b6319b991602da94111f91cb19468d0694..a749ef7d5fa592ff7075293036e3d4158a7901ec 100644 (file)
@@ -38,6 +38,10 @@ ELSE(APPLE)
         IF(NOT USE_MAIN)\r
             SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostartfiles" CACHE STRING "Flags used by the linker during all build types." FORCE)\r
         ENDIF(NOT USE_MAIN)\r
+               IF(UNIX)\r
+                       ADD_DEFINITIONS(-D_GNU_SOURCE=1)\r
+                       ADD_DEFINITIONS(-D_REENTRANT)\r
+               ENDIF(UNIX)\r
 ENDIF(APPLE)\r
 \r
 CONFIGURE_DEFAULTS()\r
@@ -50,7 +54,7 @@ link_directories(${LIBRARY_OUTPUT_PATH})
 ############\r
 set(DEMO_NAME fov120)\r
 FILE(GLOB HEADERS "*.h*")\r
-SET(SOURCES main.c dl_init.c synth.c play.c)\r
+SET(SOURCES main.c dl_init.c play.c synth.c)\r
 IF(APPLE)\r
     SET(SOURCES ${SOURCES} SDLMainForMacOSX.h SDLMainForMacOSX.m)\r
 ENDIF(APPLE)\r