roentgen edd579
project(blur_plugin C CXX)
roentgen edd579
set(PLUGINSDK_ROOT ../../toonz/sources/toonzqt)
roentgen edd579
set(PLUGINSDK_UTILS_PATH ../)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(HEADERS
roentgen edd579
    ${PLUGINSDK_ROOT}/toonz_plugin.h
roentgen edd579
    ${PLUGINSDK_ROOT}/toonz_hostif.h)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(SOURCES
Toshihiro Shimizu 890ddd
    blur.cpp)
Toshihiro Shimizu 890ddd
Campbell Barton f08982
if(APPLE)
Campbell Barton f08982
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
Campbell Barton f08982
endif()
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
add_library(blur SHARED ${HEADERS} ${SOURCES})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set_target_properties(blur PROPERTIES
Toshihiro Shimizu 890ddd
    PREFIX ""
Toshihiro Shimizu 890ddd
    SUFFIX ".plugin")
Toshihiro Shimizu 890ddd
roentgen edd579
include_directories(${PLUGINSDK_ROOT} ${PLUGINSDK_UTILS_PATH})