2019-11-15 21:33:55 +01:00
|
|
|
project(pluginexample)
|
2019-11-12 19:12:57 +01:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_search_module(PYTHON REQUIRED python3)
|
|
|
|
|
|
|
|
aux_source_directory(src SOURCES)
|
|
|
|
|
|
|
|
include_directories(${PYTHON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
|
|
link_libraries(${PYTHON_LDFLAGS} version)
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} SHARED EXCLUDE_FROM_ALL ${SOURCES})
|
|
|
|
add_dependencies(${PROJECT_NAME} version)
|
2019-11-18 21:56:22 +01:00
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES C_VISIBILITY_PRESET hidden)
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_VISIBILITY_PRESET hidden)
|