Changeset View
Changeset View
Standalone View
Standalone View
src/kioslave/CMakeLists.txt
1 | add_executable(kioslave kioslave.cpp) | 1 | add_executable(kioslave kioslave.cpp) | ||
---|---|---|---|---|---|
2 | ecm_mark_nongui_executable(kioslave) | | |||
3 | 2 | | |||
4 | target_link_libraries(kioslave | 3 | target_link_libraries(kioslave | ||
5 | KF5::KIOCore | 4 | KF5::KIOCore | ||
6 | ) | 5 | ) | ||
6 | if (APPLE) | ||||
7 | target_link_libraries(kioslave "-framework CoreFoundation") | ||||
8 | endif () | ||||
9 | | ||||
7 | 10 | | |||
8 | install(TARGETS kioslave DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5} ) | 11 | install(TARGETS kioslave DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5} ) | ||
12 | if(APPLE) | ||||
13 | # create a wrapper for the kioslave bundle-exec so it can be found via | ||||
14 | # the regular, expected path. | ||||
15 | configure_file(kioslave_wrapper.in ${CMAKE_CURRENT_BINARY_DIR}/kioslave @ONLY) | ||||
16 | install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/kioslave DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5} ) | ||||
17 | endif(APPLE) |