Changeset View
Changeset View
Standalone View
Standalone View
src/backends/CMakeLists.txt
Context not available. | |||||
48 | add_subdirectory(qalculate) | 48 | add_subdirectory(qalculate) | ||
---|---|---|---|---|---|
49 | endif(QALCULATE_FOUND) | 49 | endif(QALCULATE_FOUND) | ||
50 | 50 | | |||
51 | set_package_properties(PythonLibs PROPERTIES DESCRIPTION "A powerful dynamic programming language." | | |||
52 | URL "https://www.python.org/" | | |||
53 | TYPE OPTIONAL | | |||
54 | PURPOSE "Backend to use Python 2 with Cantor.") | | |||
55 | | ||||
56 | # If PythonInterp has been found (which it is indirectly by KF5I18n), | | |||
57 | # find_package(PythonLibs) will prefer that version over whatever | | |||
58 | # version information you pass the find_package call. Set a special | | |||
59 | # variable to override that: | | |||
60 | set(Python_ADDITIONAL_VERSIONS 2.7) | | |||
61 | find_package(PythonLibs 2.7) | | |||
62 | | ||||
63 | set_package_properties(PythonLibs3 PROPERTIES DESCRIPTION "A powerful dynamic programming language." | 51 | set_package_properties(PythonLibs3 PROPERTIES DESCRIPTION "A powerful dynamic programming language." | ||
64 | URL "https://www.python.org/" | 52 | URL "https://www.python.org/" | ||
65 | TYPE OPTIONAL | 53 | TYPE OPTIONAL | ||
66 | PURPOSE "Backend to use Python 3 with Cantor.") | 54 | PURPOSE "Backend to use Python with Cantor.") | ||
67 | 55 | | |||
68 | find_package(PythonLibs3) | 56 | find_package(PythonLibs3) | ||
69 | | ||||
70 | if(PYTHONLIBS_FOUND OR PYTHONLIBS3_FOUND) | | |||
71 | add_subdirectory(python) | | |||
72 | endif(PYTHONLIBS_FOUND OR PYTHONLIBS3_FOUND) | | |||
73 | | ||||
74 | if(PYTHONLIBS_FOUND) | | |||
75 | add_subdirectory(python2) | | |||
76 | endif(PYTHONLIBS_FOUND) | | |||
77 | | ||||
78 | if(PYTHONLIBS3_FOUND) | 57 | if(PYTHONLIBS3_FOUND) | ||
58 | add_subdirectory(python) | ||||
79 | add_subdirectory(python3) | 59 | add_subdirectory(python3) | ||
80 | endif(PYTHONLIBS3_FOUND) | 60 | endif(PYTHONLIBS3_FOUND) | ||
81 | 61 | | |||
Context not available. |