File tree 7 files changed +12
-19
lines changed
7 files changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,8 @@ Section "${APPLICATION_NAME}" SEC_APPLICATION
389
389
File "${BUILD_PATH}\bin\${APPLICATION_EXECUTABLE}"
390
390
File "${BUILD_PATH}\bin\${APPLICATION_CMD_EXECUTABLE}"
391
391
File "${BUILD_PATH}\bin\lib${APPLICATION_SHORTNAME}sync.dll"
392
- File "${BUILD_PATH}\bin\libocsync.dll"
392
+ ; Yes, with @ ... ${APPLICATION_EXECUTABLE} contains the .exe extension, @APPLICATION_EXECUTABLE@ does not.
393
+ File "${BUILD_PATH}\bin\libocsync_@APPLICATION_EXECUTABLE@.dll"
393
394
394
395
File "${BUILD_PATH}\src\gui\client*.qm"
395
396
; Make sure only to copy qt, not qt_help, etc
Original file line number Diff line number Diff line change @@ -16,13 +16,11 @@ if(UNIX AND NOT APPLE)
16
16
endif ()
17
17
18
18
if (NOT BUILD_LIBRARIES_ONLY)
19
- add_executable (${cmd_NAME} ${cmd_SRC} )
20
- set_target_properties (${cmd_NAME} PROPERTIES
21
- RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY} )
22
- set_target_properties (${cmd_NAME} PROPERTIES
23
- INSTALL_RPATH "${CMAKE_INSTALL_PREFIX} /${LIB_INSTALL_DIR} /${APPLICATION_EXECUTABLE} ;${CMAKE_INSTALL_RPATH} " )
19
+ add_executable (${cmd_NAME} ${cmd_SRC} )
20
+ set_target_properties (${cmd_NAME} PROPERTIES
21
+ RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY} )
24
22
25
- target_link_libraries (${cmd_NAME} ocsync ${synclib_NAME} Qt5::Core Qt5::Network)
23
+ target_link_libraries (${cmd_NAME} ocsync_ ${APPLICATION_EXECUTABLE} ${synclib_NAME} Qt5::Core Qt5::Network)
26
24
27
25
# Need tokenizer for netrc parser
28
26
target_include_directories (${cmd_NAME} PRIVATE ${CMAKE_SOURCE_DIR} /src/3rdparty/qtokenizer)
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ if(NOT BUILD_LIBRARIES_ONLY)
45
45
set_target_properties (${CRASHREPORTER_EXECUTABLE} PROPERTIES AUTOMOC ON )
46
46
set_target_properties (${CRASHREPORTER_EXECUTABLE} PROPERTIES AUTORCC ON )
47
47
set_target_properties (${CRASHREPORTER_EXECUTABLE} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY} )
48
- set_target_properties (${CRASHREPORTER_EXECUTABLE} PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX} /${LIB_INSTALL_DIR} /${APPLICATION_EXECUTABLE} " )
49
48
target_link_libraries (${CRASHREPORTER_EXECUTABLE}
50
49
crashreporter-gui
51
50
Qt5::Core Qt5::Widgets
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ endif()
69
69
70
70
configure_file (csync_version.h.in ${CMAKE_CURRENT_BINARY_DIR} /csync_version.h)
71
71
72
- set (CSYNC_LIBRARY ocsync )
72
+ set (CSYNC_LIBRARY "ocsync_ ${APPLICATION_EXECUTABLE} " )
73
73
add_library (${CSYNC_LIBRARY} SHARED ${common_SOURCES} ${csync_SRCS} )
74
74
75
75
target_include_directories (
@@ -135,11 +135,11 @@ else()
135
135
TARGETS
136
136
${CSYNC_LIBRARY}
137
137
LIBRARY DESTINATION
138
- ${CMAKE_INSTALL_LIBDIR} / ${APPLICATION_EXECUTABLE}
138
+ ${CMAKE_INSTALL_LIBDIR}
139
139
ARCHIVE DESTINATION
140
- ${CMAKE_INSTALL_LIBDIR} / ${APPLICATION_EXECUTABLE}
140
+ ${CMAKE_INSTALL_LIBDIR}
141
141
RUNTIME DESTINATION
142
- ${CMAKE_INSTALL_BINDIR} / ${APPLICATION_EXECUTABLE}
142
+ ${CMAKE_INSTALL_BINDIR}
143
143
)
144
144
endif ()
145
145
Original file line number Diff line number Diff line change @@ -274,9 +274,6 @@ target_include_directories(updater PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
274
274
set_target_properties ( ${APPLICATION_EXECUTABLE} PROPERTIES
275
275
RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY}
276
276
)
277
- # Only relevant for Linux? On OS X it by default properly checks in the bundle directory next to the exe
278
- set_target_properties ( ${APPLICATION_EXECUTABLE} PROPERTIES
279
- INSTALL_RPATH "${CMAKE_INSTALL_PREFIX} /${LIB_INSTALL_DIR} /${APPLICATION_EXECUTABLE} ;${CMAKE_INSTALL_RPATH} " )
280
277
281
278
target_link_libraries ( ${APPLICATION_EXECUTABLE} Qt5::Widgets Qt5::Network Qt5::Xml)
282
279
target_link_libraries ( ${APPLICATION_EXECUTABLE} ${synclib_NAME} )
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ ENDIF(NOT APPLE)
90
90
91
91
add_library (${synclib_NAME} SHARED ${libsync_SRCS} )
92
92
target_link_libraries (${synclib_NAME}
93
- ocsync
93
+ ocsync_ ${APPLICATION_EXECUTABLE}
94
94
${OS_SPECIFIC_LINK_LIBRARIES}
95
95
Qt5::Core Qt5::Network
96
96
)
@@ -122,8 +122,6 @@ set_target_properties( ${synclib_NAME} PROPERTIES
122
122
SOVERSION ${MIRALL_SOVERSION}
123
123
RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY}
124
124
)
125
- set_target_properties ( ${synclib_NAME} PROPERTIES
126
- INSTALL_RPATH "${CMAKE_INSTALL_PREFIX} /${LIB_INSTALL_DIR} /${APPLICATION_EXECUTABLE} ;${CMAKE_INSTALL_RPATH} " )
127
125
128
126
if (NOT BUILD_OWNCLOUD_OSX_BUNDLE)
129
127
install (TARGETS ${synclib_NAME}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ include_directories(${CHECK_INCLUDE_DIRS})
13
13
add_library (${TORTURE_LIBRARY} STATIC torture.c cmdline.c)
14
14
target_link_libraries (${TORTURE_LIBRARY} ${CMOCKA_LIBRARIES} ${CSYNC_LIBRARY} )
15
15
16
- set (TEST_TARGET_LIBRARIES ${TORTURE_LIBRARY} Qt5::Core ocsync )
16
+ set (TEST_TARGET_LIBRARIES ${TORTURE_LIBRARY} Qt5::Core ocsync_ ${APPLICATION_EXECUTABLE} )
17
17
18
18
# create tests
19
19
You can’t perform that action at this time.
0 commit comments