forked from external/yambar
25 lines
629 B
CMake
25 lines
629 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
|
|
add_library(decoration-sdk INTERFACE)
|
|
target_link_libraries(decoration-sdk INTERFACE PkgConfig::cairo)
|
|
|
|
set(CMAKE_SHARED_MODULE_PREFIX decoration_)
|
|
|
|
set(decorations background stack underline)
|
|
|
|
if (CORE_PLUGINS_AS_SHARED_LIBRARIES)
|
|
set(lib_type MODULE)
|
|
else()
|
|
set(lib_type STATIC)
|
|
endif ()
|
|
|
|
foreach (deco ${decorations})
|
|
add_library(${deco} ${lib_type} ${deco}.c)
|
|
target_link_libraries(${deco} decoration-sdk)
|
|
endforeach ()
|
|
|
|
if (CORE_PLUGINS_AS_SHARED_LIBRARIES)
|
|
install(TARGETS ${decorations} DESTINATION lib/f00bar)
|
|
endif ()
|
|
|
|
set(enabled_decorations ${decorations} PARENT_SCOPE)
|