include_directories(
    ${Qt5Widgets_INCLUDE_DIRS}
    ${Qt5PrintSupport_INCLUDE_DIRS}
    ${VibeCore_INCLUDE_DIRS}
)

add_definitions(
    ${Qt5Widgets_DEFINITIONS}
    ${Qt5PrintSupport_DEFINITIONS}
    ${VibeCore_DEFINITIONS}
    -DQT_PLUGIN
)

set(SOURCES
    main.cpp
    vanishstyle.cpp
    windowmanager.cpp
    blurhelper.cpp
    shortcuthandler.cpp
    colorutils.cpp
    common.cpp
    config_file.cpp
)

qt5_add_resources(RESOURCES_RCC vanish.qrc)

add_library(vanish SHARED ${SOURCES} ${RESOURCES_RCC})
set_target_properties(vanish PROPERTIES PREFIX "")
target_link_libraries(vanish
    ${Qt5Widgets_LIBRARIES}
    ${Qt5PrintSupport_LIBRARIES}
    ${VibeCore_LIBRARIES}
)

#install(TARGETS vanish LIBRARY DESTINATION ${CMAKE_INSTALL_PLUGINSDIR}/styles)
install(TARGETS vanish LIBRARY DESTINATION /opt/qt5/plugins/styles)

# Subdirectories
#add_subdirectory(config)

include_directories(
    ${Qt5Widgets_INCLUDE_DIRS}
    ${Qt5PrintSupport_INCLUDE_DIRS}
    ${VibeCore_INCLUDE_DIRS}
)

add_definitions(
    ${Qt5Widgets_DEFINITIONS}
    ${Qt5PrintSupport_DEFINITIONS}
    ${VibeCore_DEFINITIONS}
    -DQT_PLUGIN
)

set(SOURCES
    main.cpp
    vanishstyle.cpp
    windowmanager.cpp
    blurhelper.cpp
    shortcuthandler.cpp
    colorutils.cpp
    common.cpp
    config_file.cpp
)

qt5_add_resources(RESOURCES_RCC vanish.qrc)

add_library(vanish SHARED ${SOURCES} ${RESOURCES_RCC})
set_target_properties(vanish PROPERTIES PREFIX "")
target_link_libraries(vanish
    ${Qt5Widgets_LIBRARIES}
    ${Qt5PrintSupport_LIBRARIES}
    ${VibeCore_LIBRARIES}
)

install(TARGETS vanish LIBRARY DESTINATION ${CMAKE_INSTALL_PLUGINSDIR}/styles)

# Subdirectories
#add_subdirectory(config)

Install into the appropriate path.
Install into the appropriate path.
