CMakeLists.txt
changeset 7426 e36a759d3bb1
parent 7395 c1b80390a820
child 7427 c47b59bac287
equal deleted inserted replaced
7425:e918739b115e 7426:e36a759d3bb1
   102   set(UNIX_SYS ON)
   102   set(UNIX_SYS ON)
   103 else()
   103 else()
   104   set(UNIX_SYS OFF)
   104   set(UNIX_SYS OFF)
   105 endif(UNIX AND NOT APPLE)
   105 endif(UNIX AND NOT APPLE)
   106 
   106 
       
   107 if(UNIX OR APPLE)
       
   108   set(UNIX_OR_MAC_SYS ON)
       
   109 else()
       
   110   set(UNIX_OR_MAC_SYS OFF)
       
   111 endif(UNIX OR APPLE)
       
   112 
   107 # Default option knobs
   113 # Default option knobs
   108 if(APPLE OR ARCH_64)
   114 if(APPLE OR ARCH_64)
   109   set(OPT_DEF_SSEMATH ON)
   115   set(OPT_DEF_SSEMATH ON)
   110 endif()
   116 endif()
   111 if(UNIX OR MINGW OR MSYS)
   117 if(UNIX OR MINGW OR MSYS)
   188 set_option(FUSIONSOUND         "Use FusionSound audio driver" OFF)
   194 set_option(FUSIONSOUND         "Use FusionSound audio driver" OFF)
   189 dep_option(FUSIONSOUND_SHARED  "Dynamically load fusionsound audio support" ON "FUSIONSOUND_SHARED" OFF)
   195 dep_option(FUSIONSOUND_SHARED  "Dynamically load fusionsound audio support" ON "FUSIONSOUND_SHARED" OFF)
   190 set_option(VIDEO_DUMMY         "Use dummy video driver" ON)
   196 set_option(VIDEO_DUMMY         "Use dummy video driver" ON)
   191 set_option(VIDEO_OPENGL        "Include OpenGL support" ON)
   197 set_option(VIDEO_OPENGL        "Include OpenGL support" ON)
   192 set_option(VIDEO_OPENGLES      "Include OpenGL ES support" ON)
   198 set_option(VIDEO_OPENGLES      "Include OpenGL ES support" ON)
   193 set_option(PTHREADS            "Use POSIX threads for multi-threading" ${UNIX_SYS})
   199 set_option(PTHREADS            "Use POSIX threads for multi-threading" ${UNIX_OR_MAC_SYS})
   194 dep_option(PTHREADS_SEM        "Use pthread semaphores" ON "PTHREADS" OFF)
   200 dep_option(PTHREADS_SEM        "Use pthread semaphores" ON "PTHREADS" OFF)
   195 set_option(SDL_DLOPEN          "Use dlopen for shared object loading" ON)
   201 set_option(SDL_DLOPEN          "Use dlopen for shared object loading" ON)
   196 set_option(OSS                 "Support the OSS audio API" ${UNIX_SYS})
   202 set_option(OSS                 "Support the OSS audio API" ${UNIX_SYS})
   197 set_option(ALSA                "Support the ALSA audio API" ${UNIX_SYS})
   203 set_option(ALSA                "Support the ALSA audio API" ${UNIX_SYS})
   198 dep_option(ALSA_SHARED         "Dynamically load ALSA audio support" ON "ALSA" OFF)
   204 dep_option(ALSA_SHARED         "Dynamically load ALSA audio support" ON "ALSA" OFF)