summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 71ea916b1e58db0f75a9ff409cddc5a0c57d0653 (plain) (blame)
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
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 2.8.1)

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

project(ERIGO)
string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)

# define var EGUI_IS_RELEASE to activate install scripts
if (NOT CMAKE_BUILD_TYPE)
   set(CMAKE_BUILD_TYPE Debug)
endif(NOT CMAKE_BUILD_TYPE)

string(TOLOWER ${CMAKE_BUILD_TYPE} EGUI_BUILD_TYPE)
string(COMPARE EQUAL ${EGUI_BUILD_TYPE} release EGUI_IS_RELEASE)

if (${EGUI_IS_RELEASE})
   set(CMAKE_INSTALL_PREFIX /opt/e17)
endif(${EGUI_IS_RELEASE})

set(EGUI_COMMON_DEFINITIONS -DELM_INTERNAL_API_ARGESFSDFEFC -DEFL_EO_API_SUPPORT -DEFL_BETA_API_SUPPORT)
add_definitions(${EGUI_COMMON_DEFINITIONS})

find_package(Eina REQUIRED)
find_package(Eo REQUIRED)
find_package(Eolian REQUIRED)
find_package(Ecore REQUIRED)
find_package(Evas REQUIRED)
find_package(Edje REQUIRED)
find_package(Elementary REQUIRED)
find_package(Ffi REQUIRED)

include(EFLCheck)

# uninstall target
configure_file(
    "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
    "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
    IMMEDIATE @ONLY)

add_custom_target(uninstall
    COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)

add_subdirectory(src/lib)
add_subdirectory(src/bin)
#add_subdirectory(src/tests)
add_subdirectory(data/images)
add_subdirectory(data/config)