CMakeLists.txt (ssr-0.3.10) | : | CMakeLists.txt (ssr-0.3.11) | ||
---|---|---|---|---|
cmake_minimum_required(VERSION 3.1) | cmake_minimum_required(VERSION 3.1) | |||
cmake_policy(VERSION 3.1) | cmake_policy(VERSION 3.1) | |||
set(CMAKE_CXX_STANDARD 11) | set(CMAKE_CXX_STANDARD 11) | |||
project(simplescreenrecorder VERSION 0.3.10) | project(simplescreenrecorder VERSION 0.3.11) | |||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|i386|i686") | if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|i386|i686") | |||
set(PROCESSOR_IS_X86 TRUE) | set(PROCESSOR_IS_X86 TRUE) | |||
else() | else() | |||
set(PROCESSOR_IS_X86 FALSE) | set(PROCESSOR_IS_X86 FALSE) | |||
endif() | endif() | |||
option(ENABLE_32BIT_GLINJECT "Build the 32-bit version of 'libssr-glinject' on 6 4-bit systems (in addition to the 64-bit version). Required for OpenGL recording of 32-bit applications on 64-bit systems." FALSE) | option(ENABLE_32BIT_GLINJECT "Build the 32-bit version of 'libssr-glinject' on 6 4-bit systems (in addition to the 64-bit version). Required for OpenGL recording of 32-bit applications on 64-bit systems." FALSE) | |||
option(ENABLE_X86_ASM "Allow x86/x64 assembly or intrinsics." ${PROCESSOR_IS_X86 }) | option(ENABLE_X86_ASM "Allow x86/x64 assembly or intrinsics." ${PROCESSOR_IS_X86 }) | |||
option(ENABLE_FFMPEG_VERSIONS "Use FFmpeg version numbers for feature support te sts. Enable when using FFmpeg, disable when using Libav." TRUE) | option(ENABLE_FFMPEG_VERSIONS "Use FFmpeg version numbers for feature support te sts. Enable when using FFmpeg, disable when using Libav." TRUE) | |||
option(WITH_OPENGL_RECORDING "Build with OpenGL recording support." TRUE) | option(WITH_OPENGL_RECORDING "Build with OpenGL recording support." TRUE) | |||
option(WITH_ALSA "Build with ALSA support." TRUE) | option(WITH_ALSA "Build with ALSA support." TRUE) | |||
option(WITH_PULSEAUDIO "Build with PulseAudio support." TRUE) | option(WITH_PULSEAUDIO "Build with PulseAudio support." TRUE) | |||
option(WITH_JACK "Build with JACK support." TRUE) | option(WITH_JACK "Build with JACK support." TRUE) | |||
option(WITH_QT5 "Build with Qt5 (instead of Qt4)." FALSE) | option(WITH_QT5 "Build with Qt5 (instead of Qt4)." FALSE) | |||
option(WITH_SIMPLESCREENRECORDER "Build the 'simplescreenrecorder' executable." TRUE) | option(WITH_SIMPLESCREENRECORDER "Build the 'simplescreenrecorder' executable." TRUE) | |||
option(WITH_GLINJECT "Build the 'libssr-glinject' library. Required for OpenGL r ecording." TRUE) | option(WITH_GLINJECT "Build the 'libssr-glinject' library. Required for OpenGL r ecording." TRUE) | |||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) | set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) | |||
include(FeatureSummary) | ||||
include(GNUInstallDirs) | include(GNUInstallDirs) | |||
# try to guess the correct 32-bit library path on 64-bit systems | # try to guess the correct 32-bit library path on 64-bit systems | |||
if(ENABLE_32BIT_GLINJECT) | if(ENABLE_32BIT_GLINJECT) | |||
if(NOT DEFINED CMAKE_INSTALL_LIB32DIR) | if(NOT DEFINED CMAKE_INSTALL_LIB32DIR) | |||
set(_LIB32DIR_DEFAULT "lib32") | set(_LIB32DIR_DEFAULT "lib32") | |||
if(EXISTS "/etc/debian_version") | if(EXISTS "/etc/debian_version") | |||
if(EXISTS "/usr/lib/i386-linux-gnu") | if(EXISTS "/usr/lib/i386-linux-gnu") | |||
set(_LIB32DIR_DEFAULT "lib/i386-linux-gnu") | set(_LIB32DIR_DEFAULT "lib/i386-linux-gnu") | |||
skipping to change at line 108 | skipping to change at line 109 | |||
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/icons/hicolor/$ {res}x${res}/apps | DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/icons/hicolor/$ {res}x${res}/apps | |||
) | ) | |||
endforeach() | endforeach() | |||
install( | install( | |||
DIRECTORY data/icons/scalable/ | DIRECTORY data/icons/scalable/ | |||
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/icons/hicolor/scalable/ apps | DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/icons/hicolor/scalable/ apps | |||
) | ) | |||
endif() | endif() | |||
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) | ||||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |