CMake: various tidying-up
This commit is contained in:
@@ -7,14 +7,16 @@
|
|||||||
|
|
||||||
# first try to find cmark-config.cmake
|
# first try to find cmark-config.cmake
|
||||||
# path to a file not in the search path can be set with 'cmake -Dcmark_DIR=some/path/'
|
# path to a file not in the search path can be set with 'cmake -Dcmark_DIR=some/path/'
|
||||||
find_package(cmark CONFIG)
|
find_package(cmark CONFIG QUIET)
|
||||||
if(cmark_FOUND AND TARGET cmark::cmark)
|
if(cmark_FOUND AND TARGET cmark::cmark)
|
||||||
# found it!
|
# found it!
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(FindPkgConfig)
|
find_package(PkgConfig QUIET)
|
||||||
pkg_check_modules(PC_CMARK QUIET cmark)
|
if(PKG_CONFIG_FOUND)
|
||||||
|
pkg_check_modules(PC_CMARK QUIET cmark)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT CMARK_INCLUDE_DIR)
|
if(NOT CMARK_INCLUDE_DIR)
|
||||||
find_path(CMARK_INCLUDE_DIR
|
find_path(CMARK_INCLUDE_DIR
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ add_executable(neochat
|
|||||||
../res.qrc
|
../res.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
if(${Quotient_VERSION_MINOR} GREATER 6)
|
if(Quotient_VERSION_MINOR GREATER 6)
|
||||||
target_compile_definitions(neochat PRIVATE QUOTIENT_07)
|
target_compile_definitions(neochat PRIVATE QUOTIENT_07)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user