summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-01-21 12:12:57 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-01-23 18:23:40 +0100
commitfe1863e30d21ad957db4929a7c402e07731530dd (patch)
tree5c3acdb973f76400d4edde84bb8b8d44cad94999 /CMakeLists.txt
parent76e68de5d6f8a0a7843579612e01f8a3caf564a2 (diff)
cmake: move PACKAGE defines into a sane place
this should support all the vars used in all efl subsystems
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
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 @@
1cmake_minimum_required(VERSION 3.7) 1cmake_minimum_required(VERSION 3.7)
2project(efl VERSION 1.19.99.1) 2project(efl VERSION 1.19.99.1)
3
4include(GNUInstallDirs)
5
3if (NOT EFL_BUILD_ID) 6if (NOT EFL_BUILD_ID)
4 set(EFL_BUILD_ID 120) 7 set(EFL_BUILD_ID 120)
5endif() 8endif()
@@ -11,15 +14,15 @@ endif()
11set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE PATH "Path to store built libraries") 14set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE PATH "Path to store built libraries")
12set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "Path to store built executables") 15set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "Path to store built executables")
13 16
14set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Absolute path to library installation directory")
15set(EXEC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Absolute path to executable installation directory")
16set(HEADER_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Absolute path to install headers by the library")
17
18add_definitions( 17add_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
23include_directories( 26include_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