summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 425dd0ede01373a41cd171cd24c427817c1fb289 (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
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)

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