/[svn]/qsampler/trunk/CMakeLists.txt
ViewVC logotype

Diff of /qsampler/trunk/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3640 by capela, Wed Nov 13 19:46:13 2019 UTC revision 3839 by capela, Tue Dec 8 17:13:49 2020 UTC
# Line 1  Line 1 
1  project(QSAMPLER)  project(qsampler)
2    
3  cmake_minimum_required(VERSION 3.1)  cmake_minimum_required(VERSION 3.1)
4    
5  set (VERSION "0.6.1")  set (VERSION "0.9.0")
6    
7  set (CONFIG_VERSION ${VERSION})  set (CONFIG_VERSION ${VERSION})
8  execute_process (  execute_process (
# Line 12  execute_process ( Line 12  execute_process (
12    OUTPUT_STRIP_TRAILING_WHITESPACE)    OUTPUT_STRIP_TRAILING_WHITESPACE)
13  if (GIT_DESCRIBE_RESULT EQUAL 0)  if (GIT_DESCRIBE_RESULT EQUAL 0)
14    set (VERSION "${GIT_DESCRIBE_OUTPUT}")    set (VERSION "${GIT_DESCRIBE_OUTPUT}")
15    string (REGEX REPLACE "^[^_]+"   "" VERSION "${VERSION}")    string (REGEX REPLACE "^[^0-9]+" "" VERSION "${VERSION}")
   string (REGEX REPLACE "^[_vV]+"  "" VERSION "${VERSION}")  
16    string (REGEX REPLACE "-g"   "git." VERSION "${VERSION}")    string (REGEX REPLACE "-g"   "git." VERSION "${VERSION}")
17    string (REGEX REPLACE "[_|-]+"  "." VERSION "${VERSION}")    string (REGEX REPLACE "[_|-]+"  "." VERSION "${VERSION}")
18    execute_process (    execute_process (
# Line 109  find_package (PkgConfig REQUIRED) Line 108  find_package (PkgConfig REQUIRED)
108    
109  # Check for LSCP libraries.  # Check for LSCP libraries.
110  pkg_check_modules (LSCP REQUIRED lscp)  pkg_check_modules (LSCP REQUIRED lscp)
111  set (CONFIG_LIBLSCP ${LSCP_FOUND})  if (LSCP_FOUND)
112  if (CONFIG_LIBLSCP)    set (CONFIG_LIBLSCP 1)
113    include_directories (${LSCP_INCLUDE_DIRS})    include_directories (${LSCP_INCLUDE_DIRS})
114    link_directories (${LSCP_LIBRARY_DIRS})    link_directories (${LSCP_LIBRARY_DIRS})
115  # link_libraries (${LSCP_LIBRARIES})  # link_libraries (${LSCP_LIBRARIES})
# Line 177  if (CONFIG_LIBLSCP) Line 176  if (CONFIG_LIBLSCP)
176    check_function_exists (lscp_get_voices CONFIG_MAX_VOICES)    check_function_exists (lscp_get_voices CONFIG_MAX_VOICES)
177  else ()  else ()
178    message (FATAL_ERROR "*** LSCP library not found.")    message (FATAL_ERROR "*** LSCP library not found.")
179      set (CONFIG_LIBLSCP 0)
180  endif ()  endif ()
181    
182  # Check for GIG libraries.  # Check for GIG libraries.
183  if (CONFIG_LIBGIG)  if (CONFIG_LIBGIG)
184    pkg_check_modules (GIG gig>=3.3.0)    pkg_check_modules (GIG gig>=3.3.0)
185    set (CONFIG_LIBGIG ${GIG_FOUND})    if (GIG_FOUND)
   if (CONFIG_LIBGIG)  
186      include_directories (${GIG_INCLUDE_DIRS})      include_directories (${GIG_INCLUDE_DIRS})
187      link_directories (${GIG_LIBRARY_DIRS})      link_directories (${GIG_LIBRARY_DIRS})
188      link_libraries (${GIG_LIBRARIES})      link_libraries (${GIG_LIBRARIES})
# Line 199  if (CONFIG_LIBGIG) Line 198  if (CONFIG_LIBGIG)
198      endif ()      endif ()
199    else ()    else ()
200      message (WARNING "*** GIG library not found.")      message (WARNING "*** GIG library not found.")
201        set (CONFIG_LIBGIG 0)
202    endif ()    endif ()
203  endif ()  endif ()
204    

Legend:
Removed from v.3640  
changed lines
  Added in v.3839

  ViewVC Help
Powered by ViewVC