File: CMakeLists.txt

package info (click to toggle)
dnf5 5.4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,960 kB
  • sloc: cpp: 94,312; python: 3,370; xml: 1,073; ruby: 600; sql: 250; ansic: 232; sh: 104; perl: 62; makefile: 30
file content (19 lines) | stat: -rw-r--r-- 749 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# set gettext domain for translations
set(GETTEXT_DOMAIN dnf5-plugin-automatic)
add_definitions(-DGETTEXT_DOMAIN=\"${GETTEXT_DOMAIN}\")

file(GLOB_RECURSE AUTOMATIC_SOURCES *.cpp)
add_library(automatic_cmd_plugin MODULE ${AUTOMATIC_SOURCES})

# disable the 'lib' prefix in order to create automatic_cmd_plugin.so
set_target_properties(automatic_cmd_plugin PROPERTIES PREFIX "")

target_link_libraries(automatic_cmd_plugin PRIVATE libdnf5 libdnf5-cli)
target_link_libraries(automatic_cmd_plugin PRIVATE dnf5)

install(TARGETS automatic_cmd_plugin LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/dnf5/plugins/)
install(DIRECTORY "config/usr/" DESTINATION "${CMAKE_INSTALL_PREFIX}")

install(PROGRAMS bin/dnf-automatic TYPE BIN)

add_subdirectory(po)