2023-08-07 14:25:22 +08:00
|
|
|
add_subdirectory(dbus)
|
|
|
|
|
2023-07-06 18:29:52 +08:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
2023-08-07 14:25:22 +08:00
|
|
|
configure_file(config.h.in config.h)
|
2023-07-06 18:29:52 +08:00
|
|
|
|
2023-08-07 14:25:22 +08:00
|
|
|
set(LIB_NAME dde_am_static)
|
2023-07-06 18:29:52 +08:00
|
|
|
|
2023-08-07 14:25:22 +08:00
|
|
|
file(GLOB SRCS ${CMAKE_CURRENT_LIST_DIR}/*.cpp ${CMAKE_CURRENT_LIST_DIR}/*.h)
|
2023-07-06 18:29:52 +08:00
|
|
|
|
2023-08-14 16:30:16 +08:00
|
|
|
add_library(${LIB_NAME} STATIC ${SRCS})
|
2023-07-06 18:29:52 +08:00
|
|
|
|
2023-07-19 17:56:45 +08:00
|
|
|
target_include_directories(${LIB_NAME} PRIVATE
|
2023-08-07 14:25:22 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2023-07-19 17:56:45 +08:00
|
|
|
)
|
2023-07-06 18:29:52 +08:00
|
|
|
|
2023-07-19 17:56:45 +08:00
|
|
|
target_link_libraries(${LIB_NAME} PUBLIC
|
|
|
|
Threads::Threads
|
2023-08-07 14:25:22 +08:00
|
|
|
dde_am_dbus
|
2023-07-06 18:29:52 +08:00
|
|
|
)
|