-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
acef163
commit 43477a1
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function(prepare_rssguard_plugin plugin_target_name) | ||
if(NOT DEFINED LIBRSSGUARD_SOURCE_PATH) | ||
set(LIBRSSGUARD_SOURCE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/..") | ||
endif() | ||
|
||
target_compile_definitions(${plugin_target_name} | ||
PRIVATE | ||
RSSGUARD_DLLSPEC=Q_DECL_IMPORT | ||
) | ||
|
||
target_include_directories(${plugin_target_name} | ||
PUBLIC | ||
${LIBRSSGUARD_SOURCE_PATH} | ||
) | ||
|
||
if(WIN32 OR OS2) | ||
install(TARGETS ${plugin_target_name} DESTINATION plugins) | ||
elseif(UNIX AND NOT APPLE AND NOT ANDROID) | ||
include (GNUInstallDirs) | ||
install(TARGETS ${plugin_target_name} | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/rssguard | ||
) | ||
elseif(APPLE) | ||
install(TARGETS ${plugin_target_name} | ||
DESTINATION Contents/MacOS | ||
) | ||
endif() | ||
endfunction() |