pimageformats/imageformats/sai/CMakeLists.txt

18 lines
521 B
CMake
Raw Permalink Normal View History

set (plugin pimg_sai)
set (PLUGIN_SOURCES
sai_p.h
sai.cpp
)
# {{{ KCM style
set(CMAKE_SHARED_MODULE_PREFIX "")
unset(CMAKE_LIBRARY_OUTPUT_DIRECTORY)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
# }}}
add_library(${plugin} MODULE ${PLUGIN_SOURCES})
set_property(TARGET ${plugin} APPEND PROPERTY AUTOGEN_TARGET_DEPENDS "sai.json")
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/imageformats")
target_link_libraries(${plugin} Qt5::Gui sai)