Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-01-07 16:34:48 +0300
committerHannah von Reth <vonreth@kde.org>2020-01-09 17:39:32 +0300
commit6725cd5826f13dde8996f638a0d28ebb5aaa3531 (patch)
tree1317527dcee1d149051503fdb1e11df1d04c0a31 /src/crashreporter
parentf17b30515167d3e679f30118e52c41385787faba (diff)
[CMAKE] Resolve some issues discovered during review
Diffstat (limited to 'src/crashreporter')
-rw-r--r--src/crashreporter/CMakeLists.txt18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/crashreporter/CMakeLists.txt b/src/crashreporter/CMakeLists.txt
index c0a0f599a..49639c7bd 100644
--- a/src/crashreporter/CMakeLists.txt
+++ b/src/crashreporter/CMakeLists.txt
@@ -1,6 +1,3 @@
-PROJECT( CrashReporter )
-cmake_policy(SET CMP0017 NEW)
-
# TODO: differentiate release channel
# if(BUILD_RELEASE)
# set(CRASHREPORTER_RELEASE_CHANNEL "release")
@@ -32,7 +29,7 @@ list(APPEND crashreporter_RC "${CMAKE_CURRENT_BINARY_DIR}/resources.qrc")
if(NOT BUILD_LIBRARIES_ONLY)
- add_executable( ${CRASHREPORTER_EXECUTABLE}
+ add_executable(${CRASHREPORTER_EXECUTABLE}
${crashreporter_SOURCES}
${crashreporter_HEADERS_MOC}
${crashreporter_UI_HEADERS}
@@ -42,20 +39,9 @@ if(NOT BUILD_LIBRARIES_ONLY)
find_package(Qt5 REQUIRED COMPONENTS Widgets)
target_include_directories(${CRASHREPORTER_EXECUTABLE} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
- set_target_properties(${CRASHREPORTER_EXECUTABLE} PROPERTIES AUTOMOC ON)
- set_target_properties(${CRASHREPORTER_EXECUTABLE} PROPERTIES AUTORCC ON)
- set_target_properties(${CRASHREPORTER_EXECUTABLE} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY} )
target_link_libraries(${CRASHREPORTER_EXECUTABLE}
crashreporter-gui
Qt5::Core Qt5::Widgets
)
-
- if(BUILD_OWNCLOUD_OSX_BUNDLE)
- install(TARGETS ${CRASHREPORTER_EXECUTABLE} DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/MacOS)
- elseif(NOT BUILD_LIBRARIES_ONLY)
- install(TARGETS ${CRASHREPORTER_EXECUTABLE}
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
- endif()
+ install(TARGETS ${CRASHREPORTER_EXECUTABLE} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
endif()