summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: f5039d33377f66f9e75081427cd4782e611bffb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 2.8.1)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

project(DEBUG)

# The project version number.
set(VERSION_MAJOR   0   CACHE STRING "Project major version number.")
set(VERSION_MINOR   0   CACHE STRING "Project minor version number.")
set(VERSION_PATCH   1   CACHE STRING "Project patch version number.")
mark_as_advanced(VERSION_MAJOR VERSION_MINOR VERSION_PATCH)

set(DEBUG_COMMON_DEFINITIONS -DEFL_EO_API_SUPPORT -DEFL_BETA_API_SUPPORT)
add_definitions(${DEBUG_COMMON_DEFINITIONS})

set(prefix      ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set(libdir      ${CMAKE_INSTALL_PREFIX}/lib)
set(includedir  ${CMAKE_INSTALL_PREFIX}/include/edebug)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/edebug.pc.in
     ${CMAKE_CURRENT_BINARY_DIR}/edebug.pc @ONLY)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/EdebugConfig.cmake.in
   "${CMAKE_CURRENT_BINARY_DIR}/EdebugConfig.cmake" @ONLY)

INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/edebug.pc"
   DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")

INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/EdebugConfig.cmake"
   DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/edebug")

find_package(Eina REQUIRED)
find_package(Eolian REQUIRED)
find_package(Eo REQUIRED)
find_package(Elementary REQUIRED)
find_package(Ffi REQUIRED)

add_subdirectory(src/lib)