"Fossies" - the Fresh Open Source Software Archive

Member "evolution-mapi-3.46.1/src/CMakeLists.txt" (2 Dec 2022, 1331 Bytes) of package /linux/misc/evolution-mapi-3.46.1.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 macro(add_simple_module _name _sourcesvar _depsvar _defsvar _cflagsvar _incdirsvar _ldflagsvar _destination)
    2 	set(DEPENDENCIES
    3 		evolution-mapi
    4 	)
    5 
    6 	set(SOURCES
    7 		${${_sourcesvar}}
    8 	)
    9 
   10 	add_library(${_name} MODULE
   11 		${SOURCES}
   12 	)
   13 
   14 	set_target_properties(${_name} PROPERTIES
   15 		PREFIX ""
   16 	)
   17 
   18 	add_dependencies(${_name}
   19 		${DEPENDENCIES}
   20 		${${_depsvar}}
   21 	)
   22 
   23 	target_compile_definitions(${_name} PRIVATE
   24 		-DG_LOG_DOMAIN=\"${_name}\"
   25 		-DEXCHANGE_MAPI_LOCALEDIR=\"${LOCALE_INSTALL_DIR}\"
   26 		${${_defsvar}}
   27 	)
   28 
   29 	target_compile_options(${_name} PUBLIC
   30 		${CAMEL_CFLAGS}
   31 		${LIBEBACKEND_CFLAGS}
   32 		${LIBEDATASERVER_CFLAGS}
   33 		${LIBMAPI_CFLAGS}
   34 		${${_cflagsvar}}
   35 	)
   36 
   37 	target_include_directories(${_name} PUBLIC
   38 		${CMAKE_BINARY_DIR}
   39 		${CMAKE_SOURCE_DIR}
   40 		${CAMEL_INCLUDE_DIRS}
   41 		${LIBEBACKEND_INCLUDE_DIRS}
   42 		${LIBEDATASERVER_INCLUDE_DIRS}
   43 		${LIBMAPI_INCLUDE_DIRS}
   44 		${${_incdirsvar}}
   45 	)
   46 
   47 	target_link_libraries(${_name}
   48 		${DEPENDENCIES}
   49 		${${_depsvar}}
   50 		${CAMEL_LDFLAGS}
   51 		${LIBEBACKEND_LDFLAGS}
   52 		${LIBEDATASERVER_LDFLAGS}
   53 		${LIBMAPI_LDFLAGS}
   54 		${${_ldflagsvar}}
   55 	)
   56 
   57 	install(TARGETS ${_name}
   58 		DESTINATION ${_destination}
   59 	)
   60 endmacro(add_simple_module)
   61 
   62 add_subdirectory(addressbook)
   63 add_subdirectory(calendar)
   64 add_subdirectory(camel)
   65 add_subdirectory(collection)
   66 add_subdirectory(configuration)
   67 add_subdirectory(libexchangemapi)