fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kioslave / file / CMakeLists.txt
blobe0ef9ea3d46659332a22a3146479d40f52911429
2 project(kioslave-file)
4 include_directories( ${KDE4_KIO_INCLUDES} )
7 ########### next target ###############
9 if(WIN32)
10   set(kio_file_PART_SRCS file.cpp file_win.cpp )
11 else(WIN32)
12   set(kio_file_PART_SRCS file.cpp file_unix.cpp )
13 endif(WIN32)
16 kde4_add_plugin(kio_file ${kio_file_PART_SRCS})
18 target_link_libraries(kio_file  ${KDE4_KDECORE_LIBS} kio )
20 if (HAVE_VOLMGT AND CMAKE_SYSTEM_NAME MATCHES SunOS)
21     target_link_libraries(kio_file -lvolmgt)
22 endif (HAVE_VOLMGT AND CMAKE_SYSTEM_NAME MATCHES SunOS)
24 if(ACL_FOUND)
25    target_link_libraries(kio_file ${ACL_LIBS})
26 endif(ACL_FOUND)
28 install(TARGETS kio_file  DESTINATION ${PLUGIN_INSTALL_DIR} )
31 ########### install files ###############
33 install( FILES file.protocol  DESTINATION  ${SERVICES_INSTALL_DIR} )