Skip to content
Snippets Groups Projects
Commit 2c3507a9 authored by Nicky's avatar Nicky
Browse files

Cleanup plugin, create proper target for link libraries. Remove unused

variables.
parent c7ea8804
No related branches found
No related tags found
No related merge requests found
# -*- cmake -*-
create_target( ll::pluginlibraries)
if (WINDOWS)
set(PLUGIN_API_WINDOWS_LIBRARIES
set_target_libraries( ll::pluginlibraries
wsock32
ws2_32
psapi
......@@ -9,8 +11,6 @@ if (WINDOWS)
advapi32
user32
)
else (WINDOWS)
set(PLUGIN_API_WINDOWS_LIBRARIES "")
endif (WINDOWS)
......@@ -20,10 +20,9 @@ if (DARWIN)
)
endif (DARWIN)
set_source_files_properties(${SLPlugin_HEADER_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE)
if (SLPlugin_HEADER_FILES)
set_source_files_properties(${SLPlugin_HEADER_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE)
list(APPEND SLPlugin_SOURCE_FILES ${SLPlugin_HEADER_FILES})
endif (SLPlugin_HEADER_FILES)
......@@ -46,11 +45,11 @@ set_target_properties(SLPlugin
endif ()
target_link_libraries(SLPlugin
llplugin
llmessage
llcommon
${PLUGIN_API_WINDOWS_LIBRARIES}
)
llplugin
llmessage
llcommon
ll::pluginlibraries
)
if (DARWIN)
# Make sure the app bundle has a Resources directory (it will get populated by viewer-manifest.py later)
......
......@@ -63,7 +63,6 @@ add_library(media_plugin_cef
target_link_libraries(media_plugin_cef
media_plugin_base
cef::cef
${media_plugin_cef_LINK_LIBRARIES}
)
if (WINDOWS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment