Project

General

Profile

Support Request #10213 » CMakeLists.txt

hidden, 2020-02-06 09:45

 
1
cmake_minimum_required (VERSION 3.10)
2
project (DataProcessor)
3

    
4
set (DATA_PROCESSOR_FILTER tutorial_filter_data_processor)
5
# set (ADTF_DIR "C:/ADTF3/adtf-3.6.2-WIN10_x64_vc141")
6

    
7
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tutorial_filter_data_processor.h)
8
  file(WRITE tutorial_filter_data_processor.h)
9
endif()
10
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tutorial_filter_data_processor.cpp)
11
  file(WRITE tutorial_filter_data_processor.cpp)
12
endif()
13

    
14
find_package(ADTF COMPONENTS filtersdk)
15

    
16
# Adds the data_processor_filter project to the Visual Studio solution, which when build
17
# creates a shared object called data_processor_filter.adtfplugin
18
adtf_add_filter(${DATA_PROCESSOR_FILTER} tutorial_filter_data_processor.h tutorial_filter_data_processor.cpp)
19

    
20
# Adds the INSTALL project to the Visual Studio solution, which when build
21
# copies our filter to the subdirectory given as the second argument into ${CMAKE_INSTALL_PREFIX}
22
adtf_install_filter(${DATA_PROCESSOR_FILTER} src/examples/bin)
23

    
24
# Generate a plugindescription for our filter
25
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")
26
			
(1-1/3)