summaryrefslogtreecommitdiff
path: root/cmake/EWebKitHelpers.cmake
blob: 5438a9283e2a3945ef583ac1d448681e8c094fe7 (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
#FIXME: Do not use CMAKE_CXX_FLAGS

include(FindPkgConfig)

SET(ewebkit2_pkgs_list
#    ewebkit2
    chromium-efl
    )

pkg_check_modules(ewebkit2_pkgs QUIET ${ewebkit2_pkgs_list})

IF (${ewebkit2_pkgs_FOUND})

include_directories(${ewebkit2_pkgs_INCLUDE_DIRS})

FOREACH(flag ${ewebkit2_pkgs_CFLAGS})
    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}")
ENDFOREACH(flag)

set(EWEBKIT2_LDFLAGS ${ewebkit2_pkgs_LDFLAGS})
add_definitions(-DUSE_EWEBKIT)

ELSE()

message(WARNING "EWebKit not found")

ENDIF()