Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||
73 | # Find telepathy-glib | 73 | # Find telepathy-glib | ||
74 | set(TELEPATHY_GLIB_MIN_VERSION 0.16.0) | 74 | set(TELEPATHY_GLIB_MIN_VERSION 0.16.0) | ||
75 | find_package(TelepathyGlib ${TELEPATHY_GLIB_MIN_VERSION} REQUIRED) | 75 | find_package(TelepathyGlib ${TELEPATHY_GLIB_MIN_VERSION} REQUIRED) | ||
76 | set_package_properties(TelepathyGlib PROPERTIES | 76 | set_package_properties(TelepathyGlib PROPERTIES | ||
77 | DESCRIPTION "Glib bindings for Telepathy" | 77 | DESCRIPTION "Glib bindings for Telepathy" | ||
78 | URL "http://telepathy.freedesktop.org" | 78 | URL "http://telepathy.freedesktop.org" | ||
79 | TYPE REQUIRED) | 79 | TYPE REQUIRED) | ||
80 | 80 | | |||
81 | # Find python version >= 2.5 | 81 | # Find python version >= 3 | ||
82 | find_package(PythonLibrary REQUIRED) | 82 | find_package(Python3 REQUIRED) | ||
heikobecker: Nothing wrong with that besides that it needs cmake >= 3.12.0, unfortunately...
I think breeze… | |||||
83 | set(REQUIRED_PY 2.5) | 83 | set_package_properties(Python3 PROPERTIES | ||
84 | if(${PYTHON_SHORT_VERSION} VERSION_GREATER ${REQUIRED_PY} OR ${PYTHON_SHORT_VERSION} VERSION_EQUAL ${REQUIRED_PY}) | 84 | DESCRIPTION "Python Interpreter" | ||
85 | message(STATUS "Python ${PYTHON_SHORT_VERSION} found") | | |||
86 | else(${PYTHON_SHORT_VERSION} VERSION_GREATER ${REQUIRED_PY} OR ${PYTHON_SHORT_VERSION} VERSION_EQUAL ${REQUIRED_PY}) | | |||
87 | message(SEND_ERROR "Python >= ${REQUIRED_PY} is required") | | |||
88 | endif(${PYTHON_SHORT_VERSION} VERSION_GREATER ${REQUIRED_PY} OR ${PYTHON_SHORT_VERSION} VERSION_EQUAL ${REQUIRED_PY}) | | |||
89 | set_package_properties(PythonLibrary PROPERTIES | | |||
90 | DESCRIPTION "Python Library" | | |||
91 | URL "http://www.python.org" | 85 | URL "http://www.python.org" | ||
92 | TYPE REQUIRED) | 86 | TYPE REQUIRED) | ||
93 | 87 | | |||
94 | # Find TelepathyLogger >= 0.8.0 | 88 | # Find TelepathyLogger >= 0.8.0 | ||
Wouldn't find_package(PythonInterp 3) do the same without the neeed for the stuff in line 88+ ? heikobecker: Wouldn't
```
find_package(PythonInterp 3)
```
do the same without the neeed for the stuff in… | |||||
95 | set(TELEPATHY_LOGGER_MIN_VERSION 0.8.0) | 89 | set(TELEPATHY_LOGGER_MIN_VERSION 0.8.0) | ||
96 | find_package(TelepathyLogger ${TELEPATHY_LOGGER_MIN_VERSION} REQUIRED) | 90 | find_package(TelepathyLogger ${TELEPATHY_LOGGER_MIN_VERSION} REQUIRED) | ||
97 | set_package_properties(TelepathyLogger PROPERTIES | 91 | set_package_properties(TelepathyLogger PROPERTIES | ||
98 | DESCRIPTION "Daemon for logging Telepathy conversations" | 92 | DESCRIPTION "Daemon for logging Telepathy conversations" | ||
99 | URL "http://telepathy.freedesktop.org" | 93 | URL "http://telepathy.freedesktop.org" | ||
100 | TYPE REQUIRED) | 94 | TYPE REQUIRED) | ||
101 | # Generate a helper include file that defines current TPL version | 95 | # Generate a helper include file that defines current TPL version | ||
102 | ecm_setup_version(${TELEPATHY_LOGGER_VERSION} VARIABLE_PREFIX TelepathyLogger | 96 | ecm_setup_version(${TELEPATHY_LOGGER_VERSION} VARIABLE_PREFIX TelepathyLogger | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |
Nothing wrong with that besides that it needs cmake >= 3.12.0, unfortunately...
I think breeze-gtk has a bit of glue code to handle both cmake versions.