# flag is handled by CMake
set(CMAKE_INSTALL_PREFIX .)
set(ARCHIVE_OUTPUT_DIRECTORY ./bin)
-set(CMAKE_CXX_FLAGS "-g3 -ggdb3 -std=gnu++0x -Werror=return-type -Wuninitialized")
-set(CMAKE_CXX_FLAGS_RELEASE "-s -O2") #It will be appended to CMAKE_CXX_FLAGS in release
option(EXTENDED_MEDIA_MODE "Turn on and off extended Madia Manager features relates to PulseAudio A2DP and GStreamer" OFF)
option(BUILD_SHARED_LIBS "Build all libraries as shared (if ON) or static (if OFF)" OFF)
if (UNIX)
- add_definitions(-DOS_POSIX)
-endif(UNIX)
-if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
- add_definitions(-DOS_LINUX)
-elseif(CMAKE_SYSTEM_NAME STREQUAL "QNX")
- add_definitions(-DOS_QNX)
- SET(BUILD_BT_SUPPORT OFF)
- SET(BUILD_AVAHI_SUPPORT OFF)
- SET(BUILD_BACKTRACE_SUPPORT OFF)
- SET(EXTENDED_MEDIA_MODE OFF)
-elseif(CMAKE_SYSTEM_NAME STREQUAL Darwin)
+ add_definitions(-DOS_POSIX)
+
+ set(CMAKE_CXX_FLAGS "-g3 -ggdb3 -std=gnu++0x -Werror=return-type -Wuninitialized")
+ set(CMAKE_CXX_FLAGS_RELEASE "-s -O2") #It will be appended to CMAKE_CXX_FLAGS in release
+
+ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ add_definitions(-DOS_LINUX)
+ elseif(CMAKE_SYSTEM_NAME STREQUAL "QNX")
+ add_definitions(-DOS_QNX)
+ SET(BUILD_BT_SUPPORT OFF)
+ SET(BUILD_AVAHI_SUPPORT OFF)
+ SET(BUILD_BACKTRACE_SUPPORT OFF)
+ SET(EXTENDED_MEDIA_MODE OFF)
+ elseif(CMAKE_SYSTEM_NAME STREQUAL Darwin)
add_definitions(-DOS_MACOSX)
#compile 32-bit 64-bit is having an issue
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386")
-endif()
+ endif()
+endif(UNIX)
if (BUILD_USB_SUPPORT)
add_definitions(-DUSB_SUPPORT)