|
|
@ -30,93 +30,93 @@ endif( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Initialize some variables
|
|
|
|
# Initialize some variables
|
|
|
|
SET(HAVE_XFT FALSE)
|
|
|
|
set(HAVE_XFT FALSE)
|
|
|
|
SET(HAVE_ALSA FALSE)
|
|
|
|
set(HAVE_ALSA FALSE)
|
|
|
|
SET(HAVE_JACK FALSE)
|
|
|
|
set(HAVE_JACK FALSE)
|
|
|
|
SET(HAVE_DSSI FALSE)
|
|
|
|
set(HAVE_DSSI FALSE)
|
|
|
|
SET(HAVE_LIBLO FALSE)
|
|
|
|
set(HAVE_LIBLO FALSE)
|
|
|
|
SET(HAVE_LIBLRDF FALSE)
|
|
|
|
set(HAVE_LIBLRDF FALSE)
|
|
|
|
SET(HAVE_LADSPA FALSE)
|
|
|
|
set(HAVE_LADSPA FALSE)
|
|
|
|
SET(HAVE_LIRC FALSE)
|
|
|
|
set(HAVE_LIRC FALSE)
|
|
|
|
SET(HAVE_FFTW3F FALSE)
|
|
|
|
set(HAVE_FFTW3F FALSE)
|
|
|
|
|
|
|
|
|
|
|
|
# Check for Xft
|
|
|
|
# Check for Xft
|
|
|
|
PKG_CHECK_MODULES(XFT xft>=2.1.0)
|
|
|
|
pkg_check_modules(XFT xft>=2.1.0)
|
|
|
|
IF(XFT_FOUND)
|
|
|
|
if(XFT_FOUND)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_XFT)
|
|
|
|
add_definitions(-DHAVE_XFT)
|
|
|
|
SET(HAVE_XFT TRUE)
|
|
|
|
set(HAVE_XFT TRUE)
|
|
|
|
SET(XFT_LIBS ${XFT_LIBRARIES})
|
|
|
|
set(XFT_LIBS ${XFT_LIBRARIES})
|
|
|
|
#MESSAGE("XFT_LIBS: ${XFT_LIBS}")
|
|
|
|
#message("XFT_LIBS: ${XFT_LIBS}")
|
|
|
|
LIST(APPEND XFT_LIB_DIR ${XFT_LIBRARY_DIRS} ${XFT_LIBDIR})
|
|
|
|
list(APPEND XFT_LIB_DIR ${XFT_LIBRARY_DIRS} ${XFT_LIBDIR})
|
|
|
|
#MESSAGE("XFT_LIB_DIR: ${XFT_LIB_DIR}")
|
|
|
|
#message("XFT_LIB_DIR: ${XFT_LIB_DIR}")
|
|
|
|
LIST(APPEND XFT_INC_DIR ${XFT_INCLUDE_DIRS} ${XFT_INCLUDEDIR})
|
|
|
|
list(APPEND XFT_INC_DIR ${XFT_INCLUDE_DIRS} ${XFT_INCLUDEDIR})
|
|
|
|
#MESSAGE("XFT_INC_DIR: ${XFT_INC_DIR}")
|
|
|
|
#message("XFT_INC_DIR: ${XFT_INC_DIR}")
|
|
|
|
ENDIF(XFT_FOUND)
|
|
|
|
endif(XFT_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
IF(WANT_SOUND)
|
|
|
|
if(WANT_SOUND)
|
|
|
|
|
|
|
|
|
|
|
|
# Check for ALSA 1.0
|
|
|
|
# Check for ALSA 1.0
|
|
|
|
PKG_CHECK_MODULES(ALSA REQUIRED alsa>=1.0)
|
|
|
|
pkg_check_modules(ALSA REQUIRED alsa>=1.0)
|
|
|
|
IF(ALSA_FOUND)
|
|
|
|
if(ALSA_FOUND)
|
|
|
|
SET(HAVE_ALSA TRUE)
|
|
|
|
set(HAVE_ALSA TRUE)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_ALSA)
|
|
|
|
add_definitions(-DHAVE_ALSA)
|
|
|
|
SET(ALSA_LIBS ${ALSA_LIBRARIES})
|
|
|
|
set(ALSA_LIBS ${ALSA_LIBRARIES})
|
|
|
|
#MESSAGE("ALSA_LIBS: ${ALSA_LIBS}")
|
|
|
|
#message("ALSA_LIBS: ${ALSA_LIBS}")
|
|
|
|
LIST(APPEND ALSA_LIB_DIR ${ALSA_LIBRARY_DIRS} ${ALSA_LIBDIR} )
|
|
|
|
list(APPEND ALSA_LIB_DIR ${ALSA_LIBRARY_DIRS} ${ALSA_LIBDIR} )
|
|
|
|
#MESSAGE("ALSA_LIB_DIR: ${ALSA_LIB_DIR}")
|
|
|
|
#message("ALSA_LIB_DIR: ${ALSA_LIB_DIR}")
|
|
|
|
LIST(APPEND ALSA_INC_DIR ${ALSA_INCLUDE_DIRS} ${ALSA_INCLUDEDIR})
|
|
|
|
list(APPEND ALSA_INC_DIR ${ALSA_INCLUDE_DIRS} ${ALSA_INCLUDEDIR})
|
|
|
|
#MESSAGE("ALSA_INC_DIR: ${ALSA_INC_DIR}")
|
|
|
|
#message("ALSA_INC_DIR: ${ALSA_INC_DIR}")
|
|
|
|
ELSE(ALSA_FOUND)
|
|
|
|
else(ALSA_FOUND)
|
|
|
|
MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
|
|
|
|
message(FATAL_ERROR "Please install the required package. Aborting")
|
|
|
|
ENDIF(ALSA_FOUND)
|
|
|
|
endif(ALSA_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
IF(WANT_JACK)
|
|
|
|
if(WANT_JACK)
|
|
|
|
PKG_CHECK_MODULES(JACK jack>=0.77)
|
|
|
|
pkg_check_modules(JACK jack>=0.77)
|
|
|
|
IF(JACK_FOUND)
|
|
|
|
if(JACK_FOUND)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_LIBJACK)
|
|
|
|
add_definitions(-DHAVE_LIBJACK)
|
|
|
|
SET(HAVE_JACK TRUE)
|
|
|
|
set(HAVE_JACK TRUE)
|
|
|
|
SET(JACK_LIBS ${JACK_LIBRARIES})
|
|
|
|
set(JACK_LIBS ${JACK_LIBRARIES})
|
|
|
|
#MESSAGE("JACK_LIBS: ${JACK_LIBS}")
|
|
|
|
#message("JACK_LIBS: ${JACK_LIBS}")
|
|
|
|
LIST(APPEND JACK_LIB_DIR ${JACK_LIBDIR} ${JACK_LIBRARY_DIRS})
|
|
|
|
list(APPEND JACK_LIB_DIR ${JACK_LIBDIR} ${JACK_LIBRARY_DIRS})
|
|
|
|
#MESSAGE("JACK_LIB_DIR: ${JACK_LIB_DIR}")
|
|
|
|
#message("JACK_LIB_DIR: ${JACK_LIB_DIR}")
|
|
|
|
LIST(APPEND JACK_INC_DIR ${JACK_INCLUDEDIR} ${JACK_INCLUDE_DIRS})
|
|
|
|
list(APPEND JACK_INC_DIR ${JACK_INCLUDEDIR} ${JACK_INCLUDE_DIRS})
|
|
|
|
#MESSAGE("JACK_INC_DIR: ${JACK_INC_DIR}")
|
|
|
|
#message("JACK_INC_DIR: ${JACK_INC_DIR}")
|
|
|
|
ENDIF(JACK_FOUND)
|
|
|
|
endif(JACK_FOUND)
|
|
|
|
ENDIF(WANT_JACK)
|
|
|
|
endif(WANT_JACK)
|
|
|
|
|
|
|
|
|
|
|
|
IF(WANT_DSSI)
|
|
|
|
if(WANT_DSSI)
|
|
|
|
PKG_CHECK_MODULES(DSSI dssi>=0.4)
|
|
|
|
pkg_check_modules(DSSI dssi>=0.4)
|
|
|
|
IF(DSSI_FOUND)
|
|
|
|
if(DSSI_FOUND)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_DSSI)
|
|
|
|
add_definitions(-DHAVE_DSSI)
|
|
|
|
SET(HAVE_DSSI TRUE)
|
|
|
|
set(HAVE_DSSI TRUE)
|
|
|
|
LIST(APPEND DSSI_INC_DIR ${DSSI_INCLUDE_DIRS} ${DSSI_INCLUDEDIR})
|
|
|
|
list(APPEND DSSI_INC_DIR ${DSSI_INCLUDE_DIRS} ${DSSI_INCLUDEDIR})
|
|
|
|
#MESSAGE("DSSI_INC_DIR: ${DSSI_INC_DIR}")
|
|
|
|
#message("DSSI_INC_DIR: ${DSSI_INC_DIR}")
|
|
|
|
ENDIF(DSSI_FOUND)
|
|
|
|
endif(DSSI_FOUND)
|
|
|
|
ENDIF(WANT_DSSI)
|
|
|
|
endif(WANT_DSSI)
|
|
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(LIBLO liblo>=0.7)
|
|
|
|
pkg_check_modules(LIBLO liblo>=0.7)
|
|
|
|
IF(LIBLO_FOUND)
|
|
|
|
if(LIBLO_FOUND)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_LIBLO)
|
|
|
|
add_definitions(-DHAVE_LIBLO)
|
|
|
|
SET(HAVE_LIBLO TRUE)
|
|
|
|
set(HAVE_LIBLO TRUE)
|
|
|
|
SET(LIBLO_LIBS ${LIBLO_LIBRARIES})
|
|
|
|
set(LIBLO_LIBS ${LIBLO_LIBRARIES})
|
|
|
|
#MESSAGE("LIBLO_LIBS: ${LIBLO_LIBS}")
|
|
|
|
#message("LIBLO_LIBS: ${LIBLO_LIBS}")
|
|
|
|
LIST(APPEND LIBLO_LIB_DIR ${LIBLO_LIBDIR} ${LIBLO_LIBRARY_DIRS})
|
|
|
|
list(APPEND LIBLO_LIB_DIR ${LIBLO_LIBDIR} ${LIBLO_LIBRARY_DIRS})
|
|
|
|
#MESSAGE("LIBLO_LIB_DIR: ${LIBLO_LIB_DIR}")
|
|
|
|
#message("LIBLO_LIB_DIR: ${LIBLO_LIB_DIR}")
|
|
|
|
LIST(APPEND LIBLO_INC_DIR ${LIBLO_INCLUDEDIR} ${LIBLO_INCLUDE_DIRS})
|
|
|
|
list(APPEND LIBLO_INC_DIR ${LIBLO_INCLUDEDIR} ${LIBLO_INCLUDE_DIRS})
|
|
|
|
#MESSAGE("LIBLO_INC_DIR: ${LIBLO_INC_DIR}")
|
|
|
|
#message("LIBLO_INC_DIR: ${LIBLO_INC_DIR}")
|
|
|
|
ENDIF(LIBLO_FOUND)
|
|
|
|
endif(LIBLO_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(LRDF lrdf>=0.3)
|
|
|
|
pkg_check_modules(LRDF lrdf>=0.3)
|
|
|
|
IF(LRDF_FOUND)
|
|
|
|
if(LRDF_FOUND)
|
|
|
|
SET(HAVE_LIBLRDF TRUE)
|
|
|
|
set(HAVE_LIBLRDF TRUE)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_LIBLRDF)
|
|
|
|
add_definitions(-DHAVE_LIBLRDF)
|
|
|
|
SET(LRDF_LIBS ${LRDF_LIBRARIES})
|
|
|
|
set(LRDF_LIBS ${LRDF_LIBRARIES})
|
|
|
|
#MESSAGE("LRDF_LIBS: ${LRDF_LIBS}")
|
|
|
|
#message("LRDF_LIBS: ${LRDF_LIBS}")
|
|
|
|
LIST(APPEND LRDF_LIB_DIR ${LRDF_LIBDIR} ${LRDF_LIBRARY_DIRS})
|
|
|
|
list(APPEND LRDF_LIB_DIR ${LRDF_LIBDIR} ${LRDF_LIBRARY_DIRS})
|
|
|
|
#MESSAGE("LRDF_LIB_DIR: ${LRDF_LIB_DIR}")
|
|
|
|
#message("LRDF_LIB_DIR: ${LRDF_LIB_DIR}")
|
|
|
|
LIST(APPEND LRDF_INC_DIR ${LRDF_INCLUDEDIR} ${LRDF_INCLUDE_DIRS})
|
|
|
|
list(APPEND LRDF_INC_DIR ${LRDF_INCLUDEDIR} ${LRDF_INCLUDE_DIRS})
|
|
|
|
#MESSAGE("LRDF_INC_DIR: ${LRDF_INC_DIR}")
|
|
|
|
#message("LRDF_INC_DIR: ${LRDF_INC_DIR}")
|
|
|
|
ENDIF(LRDF_FOUND)
|
|
|
|
endif(LRDF_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
##################################################################
|
|
|
|
# - Try to find LADSPA header
|
|
|
|
# - Try to find LADSPA header
|
|
|
@ -124,115 +124,115 @@ IF(WANT_SOUND)
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# LADSPA_FOUND - system has LADSPA
|
|
|
|
# LADSPA_FOUND - system has LADSPA
|
|
|
|
# LADSPA_INCLUDE_DIR - LADSPA header path
|
|
|
|
# LADSPA_INCLUDE_DIR - LADSPA header path
|
|
|
|
IF(LADSPA_INCLUDE_DIR)
|
|
|
|
if(LADSPA_INCLUDE_DIR)
|
|
|
|
SET(LADSPA_FIND_QUIETLY TRUE)
|
|
|
|
set(LADSPA_FIND_QUIETLY TRUE)
|
|
|
|
ENDIF(LADSPA_INCLUDE_DIR)
|
|
|
|
endif(LADSPA_INCLUDE_DIR)
|
|
|
|
FIND_PATH(LADSPA_INCLUDE_DIR "ladspa.h"
|
|
|
|
find_path(LADSPA_INCLUDE_DIR "ladspa.h"
|
|
|
|
/usr/include
|
|
|
|
/usr/include
|
|
|
|
/usr/local/include
|
|
|
|
/usr/local/include
|
|
|
|
)
|
|
|
|
)
|
|
|
|
IF(LADSPA_INCLUDE_DIR)
|
|
|
|
if(LADSPA_INCLUDE_DIR)
|
|
|
|
SET(LADSPA_FOUND TRUE)
|
|
|
|
set(LADSPA_FOUND TRUE)
|
|
|
|
ELSE(LADSPA_INCLUDE_DIR)
|
|
|
|
else(LADSPA_INCLUDE_DIR)
|
|
|
|
SET(LADSPA_FOUND FALSE)
|
|
|
|
set(LADSPA_FOUND FALSE)
|
|
|
|
SET(LADSPA_INCLUDE_DIR "")
|
|
|
|
set(LADSPA_INCLUDE_DIR "")
|
|
|
|
ENDIF(LADSPA_INCLUDE_DIR)
|
|
|
|
endif(LADSPA_INCLUDE_DIR)
|
|
|
|
IF(LADSPA_FOUND)
|
|
|
|
if(LADSPA_FOUND)
|
|
|
|
IF(NOT LADSPA_FIND_QUIETLY)
|
|
|
|
if(NOT LADSPA_FIND_QUIETLY)
|
|
|
|
MESSAGE(STATUS "Found LADSPA: ${LADSPA_INCLUDE_DIR}")
|
|
|
|
message(STATUS "Found LADSPA: ${LADSPA_INCLUDE_DIR}")
|
|
|
|
ENDIF(NOT LADSPA_FIND_QUIETLY)
|
|
|
|
endif(NOT LADSPA_FIND_QUIETLY)
|
|
|
|
ELSE(LADSPA_FOUND)
|
|
|
|
else(LADSPA_FOUND)
|
|
|
|
IF(LADSPA_FIND_REQUIRED)
|
|
|
|
if(LADSPA_FIND_REQUIRED)
|
|
|
|
MESSAGE(FATAL_ERROR "Could not find LADSPA")
|
|
|
|
message(FATAL_ERROR "Could not find LADSPA")
|
|
|
|
ENDIF(LADSPA_FIND_REQUIRED)
|
|
|
|
endif(LADSPA_FIND_REQUIRED)
|
|
|
|
ENDIF(LADSPA_FOUND)
|
|
|
|
endif(LADSPA_FOUND)
|
|
|
|
MARK_AS_ADVANCED(LADSPA_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(LADSPA_INCLUDE_DIR)
|
|
|
|
##################################################################
|
|
|
|
##################################################################
|
|
|
|
|
|
|
|
|
|
|
|
IF(LADSPA_FOUND)
|
|
|
|
if(LADSPA_FOUND)
|
|
|
|
SET(HAVE_LADSPA TRUE)
|
|
|
|
set(HAVE_LADSPA TRUE)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_LADSPA)
|
|
|
|
add_definitions(-DHAVE_LADSPA)
|
|
|
|
SET(LADSPA_INC_DIR ${LADSPA_INCLUDE_DIR})
|
|
|
|
set(LADSPA_INC_DIR ${LADSPA_INCLUDE_DIR})
|
|
|
|
ENDIF(LADSPA_FOUND)
|
|
|
|
endif(LADSPA_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
ENDIF(WANT_SOUND)
|
|
|
|
endif(WANT_SOUND)
|
|
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(FFTW3F REQUIRED fftw3f>=3.0.0)
|
|
|
|
pkg_check_modules(FFTW3F REQUIRED fftw3f>=3.0.0)
|
|
|
|
IF(FFTW3F_FOUND)
|
|
|
|
if(FFTW3F_FOUND)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_FFTW3F)
|
|
|
|
add_definitions(-DHAVE_FFTW3F)
|
|
|
|
SET(HAVE_FFTW3F TRUE)
|
|
|
|
set(HAVE_FFTW3F TRUE)
|
|
|
|
SET(FFTW3F_LIBS ${FFTW3F_LIBRARIES})
|
|
|
|
set(FFTW3F_LIBS ${FFTW3F_LIBRARIES})
|
|
|
|
#MESSAGE("FFTW3F_LIBS: ${FFTW3F_LIBS}")
|
|
|
|
#message("FFTW3F_LIBS: ${FFTW3F_LIBS}")
|
|
|
|
LIST(APPEND FFTW3F_LIB_DIR ${FFTW3F_LIBDIR} ${FFTW3F_LIBRARY_DIRS})
|
|
|
|
list(APPEND FFTW3F_LIB_DIR ${FFTW3F_LIBDIR} ${FFTW3F_LIBRARY_DIRS})
|
|
|
|
#MESSAGE("FFTW3F_LIB_DIR: ${FFTW3F_LIB_DIR}")
|
|
|
|
#message("FFTW3F_LIB_DIR: ${FFTW3F_LIB_DIR}")
|
|
|
|
LIST(APPEND FFTW3F_INC_DIR ${FFTW3F_INCLUDEDIR} ${FFTW3F_INCLUDE_DIRS})
|
|
|
|
list(APPEND FFTW3F_INC_DIR ${FFTW3F_INCLUDEDIR} ${FFTW3F_INCLUDE_DIRS})
|
|
|
|
#MESSAGE("FFTW3F_INC_DIR: ${FFTW3F_INC_DIR}")
|
|
|
|
#message("FFTW3F_INC_DIR: ${FFTW3F_INC_DIR}")
|
|
|
|
ELSE(FFTW3F_FOUND)
|
|
|
|
else(FFTW3F_FOUND)
|
|
|
|
MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
|
|
|
|
message(FATAL_ERROR "Please install the required package. Aborting")
|
|
|
|
ENDIF(FFTW3F_FOUND)
|
|
|
|
endif(FFTW3F_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
IF(WANT_LIRC)
|
|
|
|
if(WANT_LIRC)
|
|
|
|
FIND_PACKAGE(LIRC QUIET)
|
|
|
|
find_package(LIRC QUIET)
|
|
|
|
IF(LIRC_FOUND)
|
|
|
|
if(LIRC_FOUND)
|
|
|
|
SET(HAVE_LIRC TRUE)
|
|
|
|
set(HAVE_LIRC TRUE)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_LIRC)
|
|
|
|
add_definitions(-DHAVE_LIRC)
|
|
|
|
MESSAGE(STATUS "Found LIRC (${LIRC_LIBRARY})")
|
|
|
|
message(STATUS "Found LIRC (${LIRC_LIBRARY})")
|
|
|
|
SET(LIRC_LIBS ${LIRC_LIBRARY})
|
|
|
|
set(LIRC_LIBS ${LIRC_LIBRARY})
|
|
|
|
SET(LIRC_INC_DIR ${LIRC_INCLUDE_DIR})
|
|
|
|
set(LIRC_INC_DIR ${LIRC_INCLUDE_DIR})
|
|
|
|
SET(LIRC_LIB_DIR ${LIRC_LIBRARY_DIR})
|
|
|
|
set(LIRC_LIB_DIR ${LIRC_LIBRARY_DIR})
|
|
|
|
#MESSAGE("LIRC_LIBS: ${LIRC_LIBS}")
|
|
|
|
#message("LIRC_LIBS: ${LIRC_LIBS}")
|
|
|
|
#MESSAGE("LIRC_LIB_DIR: ${LIRC_LIB_DIR}")
|
|
|
|
#message("LIRC_LIB_DIR: ${LIRC_LIB_DIR}")
|
|
|
|
#MESSAGE("LIRC_INC_DIR: ${LIRC_INC_DIR}")
|
|
|
|
#message("LIRC_INC_DIR: ${LIRC_INC_DIR}")
|
|
|
|
ENDIF(LIRC_FOUND)
|
|
|
|
endif(LIRC_FOUND)
|
|
|
|
ENDIF(WANT_LIRC)
|
|
|
|
endif(WANT_LIRC)
|
|
|
|
|
|
|
|
|
|
|
|
# Check GCC for PCH support
|
|
|
|
# Check GCC for PCH support
|
|
|
|
SET(USE_PCH FALSE)
|
|
|
|
set(USE_PCH FALSE)
|
|
|
|
IF(WANT_PCH)
|
|
|
|
if(WANT_PCH)
|
|
|
|
FIND_PACKAGE(PCHSupport)
|
|
|
|
find_package(PCHSupport)
|
|
|
|
IF(PCHSupport_FOUND)
|
|
|
|
if(PCHSupport_FOUND)
|
|
|
|
SET(USE_PCH TRUE)
|
|
|
|
set(USE_PCH TRUE)
|
|
|
|
ADD_DEFINITIONS(-DUSE_PCH)
|
|
|
|
add_definitions(-DUSE_PCH)
|
|
|
|
MESSAGE(STATUS "Enabling precompiled headers for GCC ${gcc_compiler_version}")
|
|
|
|
message(STATUS "Enabling precompiled headers for GCC ${gcc_compiler_version}")
|
|
|
|
ENDIF(PCHSupport_FOUND)
|
|
|
|
endif(PCHSupport_FOUND)
|
|
|
|
ENDIF(WANT_PCH)
|
|
|
|
endif(WANT_PCH)
|
|
|
|
|
|
|
|
|
|
|
|
# Check PTHREAD_MUTEX_RECURSIVE
|
|
|
|
# Check PTHREAD_MUTEX_RECURSIVE
|
|
|
|
INCLUDE(CheckCSourceCompiles)
|
|
|
|
include(CheckCSourceCompiles)
|
|
|
|
CHECK_C_SOURCE_COMPILES(
|
|
|
|
check_c_source_compiles(
|
|
|
|
"#include <pthread.h>
|
|
|
|
"#include <pthread.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
pthread_mutexattr_t attr;
|
|
|
|
pthread_mutexattr_t attr;
|
|
|
|
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
|
|
|
|
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}" PTHREAD_HAS_MUTEX_RECURSIVE)
|
|
|
|
}" PTHREAD_HAS_MUTEX_RECURSIVE)
|
|
|
|
IF(PTHREAD_HAS_MUTEX_RECURSIVE)
|
|
|
|
if(PTHREAD_HAS_MUTEX_RECURSIVE)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_PTHREAD_MUTEX_RECURSIVE)
|
|
|
|
add_definitions(-DHAVE_PTHREAD_MUTEX_RECURSIVE)
|
|
|
|
ENDIF(PTHREAD_HAS_MUTEX_RECURSIVE)
|
|
|
|
endif(PTHREAD_HAS_MUTEX_RECURSIVE)
|
|
|
|
# End of PTHREAD_MUTEX_RECURSIVE Test
|
|
|
|
# End of PTHREAD_MUTEX_RECURSIVE Test
|
|
|
|
|
|
|
|
|
|
|
|
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -w -fexceptions -DNDEBUG -include tqt.h")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -w -fexceptions -DNDEBUG -include tqt.h")
|
|
|
|
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -Wall -fexceptions -DDEBUG -include tqt.h")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -Wall -fexceptions -DDEBUG -include tqt.h")
|
|
|
|
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -Wall -fexceptions -DDEBUG -include tqt.h")
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -Wall -fexceptions -DDEBUG -include tqt.h")
|
|
|
|
|
|
|
|
|
|
|
|
MESSAGE(STATUS "Rosegarden ${PACKAGE_VERSION} will be built for install into ${CMAKE_INSTALL_PREFIX}")
|
|
|
|
message(STATUS "Rosegarden ${PACKAGE_VERSION} will be built for install into ${CMAKE_INSTALL_PREFIX}")
|
|
|
|
|
|
|
|
|
|
|
|
IF(WANT_DEBUG)
|
|
|
|
if(WANT_DEBUG)
|
|
|
|
IF(WANT_FULLDBG)
|
|
|
|
if(WANT_FULLDBG)
|
|
|
|
MESSAGE(STATUS "Configured to compile including full debug information in the executables")
|
|
|
|
message(STATUS "Configured to compile including full debug information in the executables")
|
|
|
|
SET(CMAKE_BUILD_TYPE Debug CACHE STRING
|
|
|
|
set(CMAKE_BUILD_TYPE Debug CACHE STRING
|
|
|
|
"Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
|
|
|
|
"Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
|
|
|
|
ELSE(WANT_FULLDBG)
|
|
|
|
else(WANT_FULLDBG)
|
|
|
|
MESSAGE(STATUS "Configured to compile including debug information in the executables")
|
|
|
|
message(STATUS "Configured to compile including debug information in the executables")
|
|
|
|
SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
|
|
|
|
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
|
|
|
|
"Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
|
|
|
|
"Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
|
|
|
|
ENDIF(WANT_FULLDBG)
|
|
|
|
endif(WANT_FULLDBG)
|
|
|
|
ELSE(WANT_DEBUG)
|
|
|
|
else(WANT_DEBUG)
|
|
|
|
MESSAGE(STATUS "Configured to compile for release without debug information")
|
|
|
|
message(STATUS "Configured to compile for release without debug information")
|
|
|
|
SET(CMAKE_BUILD_TYPE Release CACHE STRING
|
|
|
|
set(CMAKE_BUILD_TYPE Release CACHE STRING
|
|
|
|
"Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
|
|
|
|
"Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
|
|
|
|
ENDIF(WANT_DEBUG)
|
|
|
|
endif(WANT_DEBUG)
|
|
|
|
MARK_AS_ADVANCED(CMAKE_BUILD_TYPE)
|
|
|
|
mark_as_advanced(CMAKE_BUILD_TYPE)
|
|
|
|
|
|
|
|
|
|
|
|
check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
|
|
|
|
check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
|
|
|
|
check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
|
|
|
|
check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
|
|
|
|