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