summaryrefslogtreecommitdiff
path: root/plugins/CMakeLists.txt
blob: fb5610af898ded381e792f0477e42cca0d61d252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
##############################################################################
# Libeovim, for plugin development
##############################################################################

add_library(libeovim SHARED
   "${CMAKE_CURRENT_SOURCE_DIR}/lib/eovim.c"
)
target_include_directories(libeovim
   SYSTEM PRIVATE
   ${EINA_INCLUDE_DIRS}
   ${ELEMENTARY_INCLUDE_DIRS}
   ${MSGPACK_INCLUDE_DIRS}
   ${EOVIM_INCLUDE_DIRS}
)
add_nazi_compiler_warnings(libeovim)
set_target_properties(libeovim PROPERTIES
   PREFIX ""
   # Place libeovim in another directory than plugins/, as in tree execution
   # will consider libeovim as a plugin, due to its .so extension on Linux
   LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
install(TARGETS libeovim LIBRARY DESTINATION ${LIB_INSTALL_DIR})

##############################################################################
# Built-in plugins
##############################################################################

add_plugin(sizing)
add_plugin(imageviewer)