set (SOURCES plugin.cpp exr_saver.cpp) if(UNIX) set(CMAKE_CXX_FLAGS "-Wall -pedantic") endif(UNIX) include_directories(/usr/include/OpenEXR) add_library(exrsaver SHARED ${SOURCES} ) target_link_libraries(exrsaver stm) target_link_libraries(exrsaver IlmImf) target_link_libraries(exrsaver Half) target_link_libraries(exrsaver Iex) INSTALL_TARGETS(${INSTALL_PLUGIN_PATH} exrsaver)