diff options
author | Marcel Hollerbach <marcel-hollerbach@t-online.de> | 2017-01-21 12:12:57 +0100 |
---|---|---|
committer | Marcel Hollerbach <marcel-hollerbach@t-online.de> | 2017-01-23 18:23:40 +0100 |
commit | fe1863e30d21ad957db4929a7c402e07731530dd (patch) | |
tree | 5c3acdb973f76400d4edde84bb8b8d44cad94999 /CMakeLists.txt | |
parent | 76e68de5d6f8a0a7843579612e01f8a3caf564a2 (diff) |
cmake: move PACKAGE defines into a sane place
this should support all the vars used in all efl subsystems
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f68a811..0edc438 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -1,5 +1,8 @@ | |||
1 | cmake_minimum_required(VERSION 3.7) | 1 | cmake_minimum_required(VERSION 3.7) |
2 | project(efl VERSION 1.19.99.1) | 2 | project(efl VERSION 1.19.99.1) |
3 | |||
4 | include(GNUInstallDirs) | ||
5 | |||
3 | if (NOT EFL_BUILD_ID) | 6 | if (NOT EFL_BUILD_ID) |
4 | set(EFL_BUILD_ID 120) | 7 | set(EFL_BUILD_ID 120) |
5 | endif() | 8 | endif() |
@@ -11,15 +14,15 @@ endif() | |||
11 | set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE PATH "Path to store built libraries") | 14 | set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE PATH "Path to store built libraries") |
12 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "Path to store built executables") | 15 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "Path to store built executables") |
13 | 16 | ||
14 | set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Absolute path to library installation directory") | ||
15 | set(EXEC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Absolute path to executable installation directory") | ||
16 | set(HEADER_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Absolute path to install headers by the library") | ||
17 | |||
18 | add_definitions( | 17 | add_definitions( |
19 | "-DHAVE_CONFIG_H" | 18 | "-DHAVE_CONFIG_H" |
20 | "-DLIB_INSTALL_DIR=\"${LIB_INSTALL_DIR}\"" | 19 | "-DLIB_INSTALL_DIR=\"${LIB_INSTALL_DIR}\"" |
21 | "-DEXEC_INSTALL_DIR=\"${EXEC_INSTALL_DIR}\"" | 20 | "-DEXEC_INSTALL_DIR=\"${EXEC_INSTALL_DIR}\"" |
21 | "-DPACKAGE_BIN_DIR=\"${CMAKE_INSTALL_FULL_BINDIR}\"" | ||
22 | "-DPACKAGE_LIB_DIR=\"${CMAKE_INSTALL_FULL_LIBDIR}\"" | ||
23 | "-DPACKAGE_BUILD_DIR=\"${CMAKE_SOURCE_DIR}\"" | ||
22 | ) | 24 | ) |
25 | |||
23 | include_directories( | 26 | include_directories( |
24 | ${PROJECT_SOURCE_DIR}/src/lib/efl | 27 | ${PROJECT_SOURCE_DIR}/src/lib/efl |
25 | ${PROJECT_BINARY_DIR}/src/lib/efl | 28 | ${PROJECT_BINARY_DIR}/src/lib/efl |