[rkward/frameworks] rkward: Small cleanups
Thomas Friedrichsmeier
null at kde.org
Tue May 16 07:20:05 UTC 2017
Git commit 8a39f15ed61a24f9481b2f06f5fd0513cb3f7d8c by Thomas Friedrichsmeier.
Committed on 16/05/2017 at 07:20.
Pushed by tfry into branch 'frameworks'.
Small cleanups
M +2 -8 rkward/CMakeLists.txt
https://commits.kde.org/rkward/8a39f15ed61a24f9481b2f06f5fd0513cb3f7d8c
diff --git a/rkward/CMakeLists.txt b/rkward/CMakeLists.txt
index 037d0ba9..f80b068d 100755
--- a/rkward/CMakeLists.txt
+++ b/rkward/CMakeLists.txt
@@ -5,12 +5,9 @@ ENDIF(NOT ${PROJECT_NAME} STREQUAL "rkward")
INCLUDE(SetVersionNumber.cmake)
IF(Q_WS_MAC)
- SET(RKWARD_FRONTEND_LOCATION ${BIN_INSTALL_DIR}/rkward.frontend.app/Contents/MacOS)
SET(CPACK_BUNDLE_ICON rkward.icns)
SET(CPACK_BUNDLE_NAME RKWard)
SET(CPACK_BUNDLE_STARTUP_COMMAND rkward)
-ELSE(Q_WS_MAC)
- SET(RKWARD_FRONTEND_LOCATION ${LIBEXEC_INSTALL_DIR})
ENDIF(Q_WS_MAC)
ADD_SUBDIRECTORY( dataeditor )
@@ -46,7 +43,7 @@ ADD_CUSTOM_COMMAND (OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/rkward.ico"
"${CMAKE_CURRENT_BINARY_DIR}/rkward.ico")
add_executable(rkward ${RKWard_Sources} rkward_windows_icon.rc rkward.ico)
-# NOTE: These definitions are needed for the wrapper, only.
+# NOTE: These definitions are needed for the startup procedure (main.cpp), only.
# We should switch with to target_compile_definitions once we require CMAKE 2.6+
add_definitions (-DR_EXECUTABLE="${R_EXECUTABLE}")
add_definitions (-DINSTALL_PATH="${CMAKE_INSTALL_PREFIX}")
@@ -76,14 +73,11 @@ INSTALL(DIRECTORY plugins/ pages DESTINATION ${DATA_INSTALL_DIR}/rkward
INSTALL(FILES rkwardui.rc rkconsolepart.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/rkward)
INSTALL(FILES resource.ver DESTINATION ${DATA_INSTALL_DIR}/rkward)
+INSTALL(TARGETS rkward DESTINATION ${BIN_INSTALL_DIR})
IF(Q_WS_MAC)
- INSTALL(TARGETS rkward.frontend DESTINATION ${BIN_INSTALL_DIR})
- INSTALL(TARGETS rkward DESTINATION ${BUNDLE_INSTALL_DIR}/${CPACK_BUNDLE_NAME}.app/Contents/MacOS)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/rkward/icons/app-icon/rkward.icns DESTINATION ${BUNDLE_INSTALL_DIR}/${CPACK_BUNDLE_NAME}.app/Contents/Resources)
INSTALL(FILES ${RKWARD_INFOPLIST_FILE} DESTINATION ${BUNDLE_INSTALL_DIR}/${CPACK_BUNDLE_NAME}.app/Contents)
-ELSE(Q_WS_MAC)
- INSTALL(TARGETS rkward DESTINATION ${BIN_INSTALL_DIR})
ENDIF(Q_WS_MAC)
INSTALL(FILES org.kde.rkward.desktop org.kde.rkward-open.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
More information about the rkward-tracker
mailing list