cmake_minimum_required( VERSION 2.6 )

project( kmozillahelper )

find_package( KDE4 REQUIRED )
include( KDE4Defaults )
include( MacroLibrary )
add_definitions( ${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1 )
include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} )

########### next target ###############

set( kmozillahelper_SRCS
     main.cpp )

kde4_add_executable( kmozillahelper ${kmozillahelper_SRCS} )
target_link_libraries( kmozillahelper ${KDE4_KFILE_LIBS} )

# TODO hardcoded path?
install( TARGETS kmozillahelper DESTINATION /usr/lib/mozilla/ )

install( FILES kmozillahelper.notifyrc  DESTINATION  ${DATA_INSTALL_DIR}/kmozillahelper )

cmake_minimum_required(VERSION 2.8.12)

project( kmozillahelper )

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

find_package(ECM 1.0.0 REQUIRED NO_MODULE)

set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})

include(KDEInstallDirs)
include(KDECMakeSettings)
include(FeatureSummary)

find_package(KF5 REQUIRED COMPONENTS Notifications KIO WindowSystem I18n)

add_executable(kmozillahelper main.cpp)

target_link_libraries(kmozillahelper KF5::I18n KF5::KIOWidgets KF5::Notifications KF5::WindowSystem)

# TODO hardcoded path?
install(TARGETS kmozillahelper DESTINATION /usr/lib/mozilla/)
install(FILES kmozillahelper.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kmozillahelper)

Update cmakelists for Frameworks usage.
Update cmakelists for Frameworks usage.
