summaryrefslogtreecommitdiff
path: root/plugins/wheel/CMakeLists.txt
blob: ad348e301a48101423a8a4544e898c823b5ce4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs})

pkg_check_modules(giounix REQUIRED gio-unix-2.0)
set(link_libraries ${link_libraries} ${giounix_LIBRARIES})
#set(include_dirs ${include_dirs} ${giounix_INCLUDE_DIRS})
include_directories(${giounix_INCLUDE_DIRS})

set(wheelsourceplugin_headers wheelplugin.h)
set(wheelsourceplugin_sources wheelplugin.cpp)

add_library(wheelsourceplugin MODULE ${wheelsourceplugin_sources})
set_target_properties(wheelsourceplugin PROPERTIES PREFIX "")
target_link_libraries(wheelsourceplugin amb -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})

install(TARGETS wheelsourceplugin LIBRARY DESTINATION ${PLUGIN_INSTALL_PATH})

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/README ${CMAKE_CURRENT_BINARY_DIR}/wheel.README.md @ONLY)

install (FILES ${CMAKE_CURRENT_BINARY_DIR}/wheel.README.md DESTINATION ${DOC_INSTALL_DIR}/plugins)