summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2018-01-03 23:02:29 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2018-01-03 23:02:29 +0100
commiteb6afc9daa4bd4bc1afdd9f6baf3aee12daf1eb3 (patch)
tree8133cb550ffc5ef129888b2291ac65745de816d8
parent2e68483c6b2629459da6821c66a74310cfb198c5 (diff)
cmake: require EFL >= 1.19
-rw-r--r--CMakeLists.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 378c950..622597e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,7 @@ set(SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src")
48set(THEMES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/data/themes") 48set(THEMES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/data/themes")
49set(BUILD_THEMES_DIR "${CMAKE_BINARY_DIR}/themes") 49set(BUILD_THEMES_DIR "${CMAKE_BINARY_DIR}/themes")
50set(BUILD_INCLUDE_DIR "${CMAKE_BINARY_DIR}/include") 50set(BUILD_INCLUDE_DIR "${CMAKE_BINARY_DIR}/include")
51set(EFL_MIN_VERSION 1.19)
51 52
52file(MAKE_DIRECTORY "${BUILD_THEMES_DIR}") 53file(MAKE_DIRECTORY "${BUILD_THEMES_DIR}")
53file(MAKE_DIRECTORY "${BUILD_INCLUDE_DIR}/eovim") 54file(MAKE_DIRECTORY "${BUILD_INCLUDE_DIR}/eovim")
@@ -71,17 +72,17 @@ set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CP
71set(CPACK_RPM_PACKAGE_LICENSE "MIT") 72set(CPACK_RPM_PACKAGE_LICENSE "MIT")
72set(CPACK_RPM_PACKAGE_GROUP "Applications/Editors") 73set(CPACK_RPM_PACKAGE_GROUP "Applications/Editors")
73set(CPACK_RPM_PACKAGE_DESCRIPTION "Eovim is the Enlightened Neovim. That's just an EFL GUI client for Neovim.") 74set(CPACK_RPM_PACKAGE_DESCRIPTION "Eovim is the Enlightened Neovim. That's just an EFL GUI client for Neovim.")
74set(CPACK_RPM_PACKAGE_REQUIRES "neovim >= 0.2.0, efl >= 1.20") 75set(CPACK_RPM_PACKAGE_REQUIRES "neovim >= 0.2.0, efl >= ${EFL_MIN_VERSION}")
75 76
76include(CPack) 77include(CPack)
77 78
78find_package(Eina REQUIRED) 79find_package(Eina ${EFL_MIN_VERSION} REQUIRED)
79find_package(Eet REQUIRED) 80find_package(Eet ${EFL_MIN_VERSION} REQUIRED)
80find_package(Evas REQUIRED) 81find_package(Evas ${EFL_MIN_VERSION} REQUIRED)
81find_package(Ecore REQUIRED COMPONENTS File Input) 82find_package(Ecore ${EFL_MIN_VERSION} REQUIRED COMPONENTS File Input)
82find_package(Edje REQUIRED) 83find_package(Edje ${EFL_MIN_VERSION} REQUIRED)
83find_package(Efreet REQUIRED) 84find_package(Efreet ${EFL_MIN_VERSION} REQUIRED)
84find_package(Elementary REQUIRED) 85find_package(Elementary ${EFL_MIN_VERSION} REQUIRED)
85find_package(MsgPack REQUIRED) 86find_package(MsgPack REQUIRED)
86 87
87add_custom_command( 88add_custom_command(