diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-28 23:30:27 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-28 23:30:27 +0200 |
commit | f3ac7d608633d0f2bad0505c1ed1c25af6048745 (patch) | |
tree | ac4eee29d8b74ef1fb3d1bf409ab858962bff2fe /CMakeLists.txt | |
parent | 91282dafe2399a3da22f75f78690bc5bad563a76 (diff) | |
parent | 3859fae9f80ab2a85e1926c48627c90355a927d1 (diff) | |
download | libayatana-common-f3ac7d608633d0f2bad0505c1ed1c25af6048745.tar.gz libayatana-common-f3ac7d608633d0f2bad0505c1ed1c25af6048745.tar.bz2 libayatana-common-f3ac7d608633d0f2bad0505c1ed1c25af6048745.zip |
Merge branch 'sunweaver-pr/conditional-gir-and-vala'
Attributes GH PR #38: https://github.com/AyatanaIndicators/libayatana-common/pull/38
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 751bf36..4dfc038 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,10 @@ pkg_check_modules( ) include_directories(${URLDISPATCHER_INCLUDE_DIRS}) +# for GIR and Vala bindings +find_package (GObjectIntrospection QUIET) +find_package (Vala QUIET) + set(CC_WARNING_ARGS " -Wall -pedantic -Wextra -Wno-missing-field-initializers") add_subdirectory(src) @@ -76,3 +80,14 @@ endif() message(STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX}") message(STATUS "Unit tests: ${ENABLE_TESTS}") message(STATUS "Build with -Werror: ${ENABLE_WERROR}") + +if (INTROSPECTION_FOUND) + message(STATUS "Build GObjectIntrospection: YES") + if (VALA_COMPILER) + message(STATUS "Build Vala bindings: YES") + else() + message(STATUS "Build Vala bindings: NO") + endif() +else() + message(STATUS "Build GObjectIntrospection: NO") +endif()
\ No newline at end of file |