1
# Copyright (C) 2013 Christian Dywan <christian@twotoasts.de>
3
set(LIBMIDORI_VERSION 0.5.5)
4
set(LIBMIDORI_SOVERSION 0)
6
file(GLOB MIDORI_VALA_SOURCE ../katze/*.vala *.vala ../panels/*.vala)
7
file(GLOB LIBMIDORI_SOURCE ../katze/*.c ../panels/*.c ../toolbars/*.c midori-*.vala midori-*.c sokoke.c)
9
add_glib_marshal(LIBMIDORI_SOURCE marshal ${CMAKE_PROJECT_NAME}_cclosure_marshal "midori.h")
14
include(ValaPrecompile)
15
vala_precompile(LIBMIDORI_SOURCE_C ${CMAKE_PROJECT_NAME}
25
"${CMAKE_PROJECT_NAME}-core"
27
"${CMAKE_PROJECT_NAME}-core"
30
set(LIBMIDORI "${CMAKE_PROJECT_NAME}-core")
31
add_library(${LIBMIDORI} SHARED ${LIBMIDORI_SOURCE_C} ${LIBMIDORI_SOURCE})
34
${CMAKE_CURRENT_SOURCE_DIR}
35
"${CMAKE_SOURCE_DIR}/katze"
36
"${CMAKE_SOURCE_DIR}/toolbars"
40
${DEPS_GTK_INCLUDE_DIRS}
41
${OPTS_GTK_INCLUDE_DIRS}
43
target_link_libraries(${LIBMIDORI}
49
set_target_properties(${LIBMIDORI} PROPERTIES
50
COMPILE_FLAGS ${CFLAGS}
55
add_executable(${CMAKE_PROJECT_NAME} main.c)
56
target_link_libraries(${CMAKE_PROJECT_NAME}
58
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES
59
COMPILE_FLAGS ${CFLAGS}