Toshihiro Shimizu 890ddd
project(multi_plugin)
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
Campbell Barton 9ece9c
    ${PLUGINSDK_ROOT}/toonz_hostif.h
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set(SOURCES
Campbell Barton 9ece9c
    multi.cpp
Campbell Barton 9ece9c
)
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(multi SHARED ${HEADERS} ${SOURCES})
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
set_target_properties(multi PROPERTIES
Toshihiro Shimizu 890ddd
    PREFIX ""
Campbell Barton 9ece9c
    SUFFIX ".plugin"
Campbell Barton 9ece9c
)
Toshihiro Shimizu 890ddd
roentgen edd579
include_directories(${PLUGINSDK_ROOT} ${PLUGINSDK_UTILS_PATH})