snorenotify/src/CMakeLists.txt

26 lines
811 B
CMake
Raw Normal View History

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(core)
2013-07-24 12:34:45 +02:00
if(WITH_SNORE_DEAMON)
2013-07-24 12:34:45 +02:00
add_executable( snorenotify WIN32 main.cpp snorenotify.cpp trayicon.cpp ${SNORENOTIFY_DEAMON_DEPS})
2013-07-24 12:34:45 +02:00
target_link_libraries( snorenotify snorecore ${QT_QTGUI_LIBRARY} )
2013-07-24 12:34:45 +02:00
if(KDE4_FOUND)
target_link_libraries( snorenotify ${KDE4_KDEUI_LIBS} )
endif(KDE4_FOUND)
2013-07-24 12:34:45 +02:00
if(MSVC)
set_target_properties(snorenotify PROPERTIES LINK_FLAGS "/ENTRY:\"mainCRTStartup\"")
endif(MSVC)
2013-07-24 12:34:45 +02:00
add_dependencies(snorenotify snorecore)
2013-07-24 12:34:45 +02:00
install(TARGETS snorenotify RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
endif()
add_subdirectory(plugins)