/[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 3675 by capela, Thu Dec 26 14:51:26 2019 UTC revision 3851 by capela, Mon Jan 18 12:04:37 2021 UTC
# Line 1  Line 1 
1  project(QSAMPLER)  cmake_minimum_required(VERSION 3.10)
2    
3  cmake_minimum_required(VERSION 3.1)  project(qsampler)
4    
5  set (VERSION "0.6.2")  set (VERSION "0.9.1")
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 70  if (POLICY CMP0075) Line 69  if (POLICY CMP0075)
69  endif ()  endif ()
70    
71  # Check for Qt  # Check for Qt
72  find_package (Qt5 REQUIRED COMPONENTS Core Gui Widgets)  find_package (QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
73    find_package (Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets)
74    
75  if (CONFIG_XUNIQUE)  if (CONFIG_XUNIQUE)
76    find_package (Qt5 REQUIRED COMPONENTS Network)    find_package (Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Network)
77  endif ()  endif ()
78    
79  find_package (Qt5LinguistTools)  find_package (Qt${QT_VERSION_MAJOR}LinguistTools)
80    
81  include (CheckIncludeFile)  include (CheckIncludeFile)
82  include (CheckIncludeFiles)  include (CheckIncludeFiles)
# Line 108  endif () Line 108  endif ()
108  find_package (PkgConfig REQUIRED)  find_package (PkgConfig REQUIRED)
109    
110  # Check for LSCP libraries.  # Check for LSCP libraries.
111  pkg_check_modules (LSCP REQUIRED lscp)  pkg_check_modules (LSCP REQUIRED IMPORTED_TARGET lscp)
112  if (LSCP_FOUND)  if (LSCP_FOUND)
113    set (CONFIG_LIBLSCP 1)    set (CONFIG_LIBLSCP 1)
114    include_directories (${LSCP_INCLUDE_DIRS})    include_directories (${LSCP_INCLUDE_DIRS})
# Line 182  endif () Line 182  endif ()
182    
183  # Check for GIG libraries.  # Check for GIG libraries.
184  if (CONFIG_LIBGIG)  if (CONFIG_LIBGIG)
185    pkg_check_modules (GIG gig>=3.3.0)    pkg_check_modules (GIG IMPORTED_TARGET gig>=3.3.0)
186    if (GIG_FOUND)    if (GIG_FOUND)
187      include_directories (${GIG_INCLUDE_DIRS})      include_directories (${GIG_INCLUDE_DIRS})
188      link_directories (${GIG_LIBRARY_DIRS})      link_directories (${GIG_LIBRARY_DIRS})

Legend:
Removed from v.3675  
changed lines
  Added in v.3851

  ViewVC Help
Powered by ViewVC