Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/CMakeLists.txt
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 134 | target_link_libraries(kmymoney | |||
---|---|---|---|---|---|
162 | KChart | 162 | KChart | ||
163 | $<$<BOOL:${USE_MODELTEST}>:Qt5::Test> | 163 | $<$<BOOL:${USE_MODELTEST}>:Qt5::Test> | ||
164 | $<$<BOOL:${KF5Holidays_FOUND}>:KF5::Holidays> | 164 | $<$<BOOL:${KF5Holidays_FOUND}>:KF5::Holidays> | ||
165 | $<$<BOOL:${KF5Activities_FOUND}>:KF5::Activities> | 165 | $<$<BOOL:${KF5Activities_FOUND}>:KF5::Activities> | ||
166 | PRIVATE | 166 | PRIVATE | ||
167 | $<$<BOOL:${ENABLE_SQLCIPHER}>:sqlcipher> | 167 | $<$<BOOL:${ENABLE_SQLCIPHER}>:sqlcipher> | ||
168 | ) | 168 | ) | ||
169 | 169 | | |||
170 | # create symlink to let kcoreaddons find plugins | ||||
171 | if(WIN32) | ||||
172 | add_custom_command(TARGET kmymoney POST_BUILD | ||||
wojnilowicz: AFAIK, this works only on UNIX. You didn't exclude other OSes. | |||||
yes. cmake does not has cross platform support for this yet. On windows there a symbolic link from bin/kmymoney to bin (see https://en.wikipedia.org/wiki/Symbolic_link) e.g. cd bin mklink /D kmymoney . habacker: yes. cmake does not has cross platform support for this yet. On windows there a symbolic link… | |||||
173 | COMMAND mklink /J kmymoney . | ||||
174 | WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||||
175 | else() | ||||
176 | add_custom_command(TARGET kmymoney POST_BUILD | ||||
177 | COMMAND ${CMAKE_COMMAND} -E create_symlink . kmymoney | ||||
178 | WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||||
179 | endif() | ||||
180 | | ||||
170 | # own plist magic for mac os | 181 | # own plist magic for mac os | ||
171 | if(APPLE) | 182 | if(APPLE) | ||
172 | # own plist template | 183 | # own plist template | ||
173 | set_target_properties(kmymoney PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/MacOSXBundleInfo.plist.in) | 184 | set_target_properties(kmymoney PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/MacOSXBundleInfo.plist.in) | ||
174 | 185 | | |||
175 | # the MacOSX bundle display name property (CFBundleDisplayName) is not currently supported by cmake, | 186 | # the MacOSX bundle display name property (CFBundleDisplayName) is not currently supported by cmake, | ||
176 | # so has to be set for all targets in this cmake file | 187 | # so has to be set for all targets in this cmake file | ||
177 | set(MACOSX_BUNDLE_DISPLAY_NAME KMyMoney) | 188 | set(MACOSX_BUNDLE_DISPLAY_NAME KMyMoney) | ||
Show All 34 Lines |
AFAIK, this works only on UNIX. You didn't exclude other OSes.