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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
set(DEPENDENCIES
evolution-util
)
set(SOURCES
e-dom-utils.h
e-dom-utils.c
)
add_library(edomutils SHARED
${SOURCES}
)
add_dependencies(edomutils
${DEPENDENCIES}
)
set_target_properties(edomutils PROPERTIES
VERSION 0.0.0
SOVERSION 0
)
target_compile_definitions(edomutils PRIVATE
-DG_LOG_DOMAIN=\"edomutils\"
-DEVOLUTION_IMAGESDIR=\"${imagesdir}\"
)
target_compile_options(edomutils PUBLIC
${EVOLUTION_DATA_SERVER_CFLAGS}
${GNOME_PLATFORM_CFLAGS}
)
target_include_directories(edomutils PUBLIC
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
${EVOLUTION_DATA_SERVER_INCLUDE_DIRS}
${GNOME_PLATFORM_INCLUDE_DIRS}
)
target_link_libraries(edomutils
${DEPENDENCIES}
${EVOLUTION_DATA_SERVER_LDFLAGS}
${GNOME_PLATFORM_LDFLAGS}
)
install(TARGETS edomutils
DESTINATION ${privsolibdir}
)
set(SOURCES
e-web-extension.h
e-web-extension-names.h
e-dom-utils.h
e-web-extension.c
e-web-extension-main.c
e-dom-utils.c
)
add_library(ewebextension MODULE
${SOURCES}
)
add_dependencies(ewebextension
${DEPENDENCIES}
)
target_compile_definitions(ewebextension PRIVATE
-DG_LOG_DOMAIN=\"ewebextension\"
-DEVOLUTION_IMAGESDIR=\"${imagesdir}\"
)
target_compile_options(ewebextension PUBLIC
${EVOLUTION_DATA_SERVER_CFLAGS}
${GNOME_PLATFORM_CFLAGS}
${WEB_EXTENSIONS_CFLAGS}
)
target_include_directories(ewebextension PUBLIC
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
${EVOLUTION_DATA_SERVER_INCLUDE_DIRS}
${GNOME_PLATFORM_INCLUDE_DIRS}
${WEB_EXTENSIONS_INCLUDE_DIRS}
)
target_link_libraries(ewebextension
${DEPENDENCIES}
${EVOLUTION_DATA_SERVER_LDFLAGS}
${GNOME_PLATFORM_LDFLAGS}
${WEB_EXTENSIONS_LDFLAGS}
)
install(TARGETS ewebextension
DESTINATION ${webextensionsdir}
)
|