set(SHADER apTextureRandom)

set(SRC_FILES 
    "apTextureRandom.cpp")
    
set(META_FILES
    "apTextureRandom.mtd")
    
set(TEMPLATE_FILES
    "apTextureRandomTemplate.py")
    
include_directories(${ARNOLD_INCLUDE_PATH})
add_library(${SHADER} SHARED ${SRC_FILES})
set_target_properties(${SHADER} PROPERTIES PREFIX "")

target_link_libraries(${SHADER} ${ARNOLD_AI_LIBRARY})

set(INSTALL_SHADER_TARGET "${CMAKE_INSTALL_PREFIX}/${ARNOLD_VERSION}/${CMAKE_PROJECT_NAME}/shaders")
set(INSTALL_TEMPLATE_TARGET "${CMAKE_INSTALL_PREFIX}/${ARNOLD_VERSION}/${CMAKE_PROJECT_NAME}/templates")

install(TARGETS ${SHADER} RUNTIME DESTINATION ${INSTALL_SHADER_TARGET})
install(FILES ${META_FILES} DESTINATION ${INSTALL_SHADER_TARGET})
install(FILES ${TEMPLATE_FILES} DESTINATION ${INSTALL_TEMPLATE_TARGET})