summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-01-21 13:27:17 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-01-23 18:23:40 +0100
commit2a5c2a0c3cc245567b6b0854648732099dc878b9 (patch)
tree3e3bba7d98ce8e905a89e1df597ded8e14b5a6e5 /CMakeLists.txt
parent9f2a2f7968c0b7e036093945cdc035427b681809 (diff)
cmake: improve versioning
The version defines are now done all the time. and the version pattern does mach the one from autotools. And supports release mode now.
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0edc438..756297d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,11 @@
1cmake_minimum_required(VERSION 3.7) 1cmake_minimum_required(VERSION 3.7)
2project(efl VERSION 1.19.99.1) 2
3set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/helpers")
3 4
4include(GNUInstallDirs) 5include(GNUInstallDirs)
6include(EflMacros)
7
8EFL_PROJECT(1.19.99)
5 9
6if (NOT EFL_BUILD_ID) 10if (NOT EFL_BUILD_ID)
7 set(EFL_BUILD_ID 120) 11 set(EFL_BUILD_ID 120)
@@ -21,6 +25,7 @@ add_definitions(
21 "-DPACKAGE_BIN_DIR=\"${CMAKE_INSTALL_FULL_BINDIR}\"" 25 "-DPACKAGE_BIN_DIR=\"${CMAKE_INSTALL_FULL_BINDIR}\""
22 "-DPACKAGE_LIB_DIR=\"${CMAKE_INSTALL_FULL_LIBDIR}\"" 26 "-DPACKAGE_LIB_DIR=\"${CMAKE_INSTALL_FULL_LIBDIR}\""
23 "-DPACKAGE_BUILD_DIR=\"${CMAKE_SOURCE_DIR}\"" 27 "-DPACKAGE_BUILD_DIR=\"${CMAKE_SOURCE_DIR}\""
28 "-DPACKAGE_VERSION=\"${PROJECT_VERSION}\""
24 ) 29 )
25 30
26include_directories( 31include_directories(
@@ -28,9 +33,6 @@ include_directories(
28 ${PROJECT_BINARY_DIR}/src/lib/efl 33 ${PROJECT_BINARY_DIR}/src/lib/efl
29 ) 34 )
30 35
31set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/helpers")
32include(EflMacros)
33
34include(${CMAKE_SOURCE_DIR}/cmake/config/common.cmake) 36include(${CMAKE_SOURCE_DIR}/cmake/config/common.cmake)
35 37
36EFL_LIB(eina) 38EFL_LIB(eina)