cmake_minimum_required (VERSION 3.10) #name for visual studio solution project (HelloVersion) # set name of filter in ADTF set (HELLO_VERSION_FILTER hello_version_filter) #create header and source if they do not exist yet if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/hello_version_filter.h) file(WRITE hello_version_filter.h) endif() if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/hello_version_filter.cpp) file(WRITE hello_version_filter.cpp) endif() # makes headers, libraries and additional CMake macros of the ADTF SDK available find_package(ADTF COMPONENTS filtersdk) # Adds the hello_version_filter project to the Visual Studio solution, which when build # creates a shared object called hello_version_filter.adtfplugin adtf_add_filter(${HELLO_VERSION_FILTER} hello_version_filter.h hello_version_filter.cpp) # Adds the INSTALL project to the Visual Studio solution, which when build # copies our filter to the subdirectory given as the second argument into ${CMAKE_INSTALL_PREFIX} adtf_install_filter(${HELLO_VERSION_FILTER} src/examples/bin) # Generate a plugindescription for our filter adtf_create_plugindescription(TARGET ${HELLO_VERSION_FILTER} PLUGIN_SUBDIR "src/examples/bin")