1 |
project(qsampler) |
cmake_minimum_required(VERSION 3.10) |
2 |
|
|
3 |
cmake_minimum_required(VERSION 3.1) |
project(qsampler |
4 |
|
VERSION 0.9.1 |
5 |
|
DESCRIPTION "A LinuxSampler Qt GUI Interface" |
6 |
|
LANGUAGES C CXX) |
7 |
|
|
8 |
set (VERSION "0.9.1") |
set (CONFIG_VERSION ${PROJECT_VERSION}) |
|
|
|
|
set (CONFIG_VERSION ${VERSION}) |
|
9 |
execute_process ( |
execute_process ( |
10 |
COMMAND git describe --tags --dirty --abbrev=6 |
COMMAND git describe --tags --dirty --abbrev=6 |
11 |
OUTPUT_VARIABLE GIT_DESCRIBE_OUTPUT |
OUTPUT_VARIABLE GIT_DESCRIBE_OUTPUT |
24 |
if (GIT_REVPARSE_RESULT EQUAL 0 AND NOT GIT_REVPARSE_OUTPUT STREQUAL "master") |
if (GIT_REVPARSE_RESULT EQUAL 0 AND NOT GIT_REVPARSE_OUTPUT STREQUAL "master") |
25 |
set (VERSION "${VERSION} [${GIT_REVPARSE_OUTPUT}]") |
set (VERSION "${VERSION} [${GIT_REVPARSE_OUTPUT}]") |
26 |
endif () |
endif () |
27 |
|
else () |
28 |
|
set (VERSION "${PROJECT_VERSION}") |
29 |
endif () |
endif () |
30 |
|
|
31 |
set (PACKAGE_NAME "Qsampler") |
set (PACKAGE_NAME "Qsampler") |
111 |
find_package (PkgConfig REQUIRED) |
find_package (PkgConfig REQUIRED) |
112 |
|
|
113 |
# Check for LSCP libraries. |
# Check for LSCP libraries. |
114 |
pkg_check_modules (LSCP REQUIRED lscp) |
pkg_check_modules (LSCP REQUIRED IMPORTED_TARGET lscp) |
115 |
if (LSCP_FOUND) |
if (LSCP_FOUND) |
116 |
set (CONFIG_LIBLSCP 1) |
set (CONFIG_LIBLSCP 1) |
117 |
include_directories (${LSCP_INCLUDE_DIRS}) |
include_directories (${LSCP_INCLUDE_DIRS}) |
185 |
|
|
186 |
# Check for GIG libraries. |
# Check for GIG libraries. |
187 |
if (CONFIG_LIBGIG) |
if (CONFIG_LIBGIG) |
188 |
pkg_check_modules (GIG gig>=3.3.0) |
pkg_check_modules (GIG IMPORTED_TARGET gig>=3.3.0) |
189 |
if (GIG_FOUND) |
if (GIG_FOUND) |
190 |
include_directories (${GIG_INCLUDE_DIRS}) |
include_directories (${GIG_INCLUDE_DIRS}) |
191 |
link_directories (${GIG_LIBRARY_DIRS}) |
link_directories (${GIG_LIBRARY_DIRS}) |