set(HEADERS ../include/colorfx.h colorfxutils.h rasterstyles.h regionstyles.h strokestyles.h zigzagstyles.h flowlinestrokestyle.h ) set(SOURCES colorfx.cpp colorfxutils.cpp rasterstyles.cpp regionstyles.cpp strokestyles.cpp zigzagstyles.cpp flowlinestrokestyle.cpp ) if(WITH_TRANSLATION) add_translation(colorfx ${HEADERS} ${SOURCES}) endif() add_library(colorfx SHARED ${HEADERS} ${SOURCES}) add_definitions( -D_USRDLL -DCOLORFX_EXPORTS -DUSE_MESA ) if(BUILD_ENV_APPLE) set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-install_name,@executable_path/libcolorfx.dylib") add_dependencies(colorfx tnzcore tnzbase) endif() message("subdir: colorfx") message("type:" ${CMAKE_SHARED_LIBRARY_SUFFIX}) message("Bin: " ${CMAKE_CURRENT_BINARY_DIR}) _find_toonz_library(EXTRA_LIBS "tnzcore;tnzbase") message("FIND_FILE:" ${EXTRA_LIBS}) target_link_libraries(colorfx Qt5::Core Qt5::Gui ${GL_LIB} ${EXTRA_LIBS})