cmake_minimum_required (VERSION 3.10) project (DataProcessor) set (DATA_PROCESSOR_FILTER tutorial_filter_data_processor) # set (ADTF_DIR "C:/ADTF3/adtf-3.6.2-WIN10_x64_vc141") if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tutorial_filter_data_processor.h) file(WRITE tutorial_filter_data_processor.h) endif() if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tutorial_filter_data_processor.cpp) file(WRITE tutorial_filter_data_processor.cpp) endif() find_package(ADTF COMPONENTS filtersdk) # Adds the data_processor_filter project to the Visual Studio solution, which when build # creates a shared object called data_processor_filter.adtfplugin adtf_add_filter(${DATA_PROCESSOR_FILTER} tutorial_filter_data_processor.h tutorial_filter_data_processor.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(${DATA_PROCESSOR_FILTER} src/examples/bin) # Generate a plugindescription for our filter adtf_create_plugindescription(TARGET ${DATA_PROCESSOR_FILTER} PLUGIN_SUBDIR "C:/ADTF3/adtf-3.6.2-WIN10_x64_vc141/src/examples/src/adtf/filters/standard_filters/tutorial_filter_data_processor/build")