summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: dd31de05b09ef14e809568e116db239f27df566b (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
project(text_styles)
cmake_minimum_required(VERSION 2.8)
aux_source_directory(. SRC_LIST)

find_package(Eo REQUIRED)
find_package(Efl REQUIRED)
find_package(Eina REQUIRED)
find_package(Eet REQUIRED)
find_package(Evas REQUIRED)
find_package(Ecore REQUIRED)
#find_package(Ecore COMPONENTS Ecore-x)
find_package(Edje REQUIRED)
find_package(Efreet REQUIRED)
find_package(Elementary REQUIRED)
find_package(Emotion REQUIRED)
find_package(Emile REQUIRED)

add_definitions(-Wall -Wextra)

# Disable -rpath as it will skip LD_LIBRARY_PATH. Very inconvenient for debug :)
set(CMAKE_SKIP_BUILD_RPATH  TRUE)

add_definitions(-DEFL_EO_API_SUPPORT=1 -DEFL_BETA_API_SUPPORT=1)

include_directories(
   ${EO_INCLUDE_DIRS}
   ${EINA_INCLUDE_DIRS}
   ${ELEMENTARY_INCLUDE_DIRS}
   ${EDJE_INCLUDE_DIRS}
   ${ECORE_INCLUDE_DIRS}
   ${ECORE_X_INCLUDE_DIRS}
   ${EFREET_INCLUDE_DIRS}
   ${EVAS_INCLUDE_DIRS}
   ${EET_INCLUDE_DIRS}
   ${EMOTION_INCLUDE_DIRS}
   ${EMILE_INCLUDE_DIRS}
   )

add_executable(${PROJECT_NAME} ${SRC_LIST})
target_link_libraries(${PROJECT_NAME}
   ${EO_LIBRARIES}
   ${EINA_LIBRARIES}
   ${ELEMENTARY_LIBRARIES}
   ${EDJE_LIBRARIES}
   ${ECORE_LIBRARIES}
   ${ECORE_X_LIBRARIES}
   ${EFREET_LIBRARIES}
   ${EVAS_LIBRARIES}
   ${EET_LIBRARIES}
   ${EMOTION_LIBRARIES}
   ${EMILE_LIBRARIES}
   ${EFL_LIBRARIES}
   )

# Make this program runnable by QuickLaunch
add_definitions(-fpie -std=gnu99)

if (NOT WINDOWS)
  set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS -pie)
endif (NOT WINDOWS)

install(TARGETS ${PROJECT_NAME} DESTINATION bin)