From 2023e87a32bc1ac2112d9cabebbd5d80d38dcd9e Mon Sep 17 00:00:00 2001 From: Guillaume Courrier Date: Mon, 9 Dec 2019 12:15:33 +0100 Subject: [PATCH] correction des fichiers cmake --- tests/examples/CMakeLists.txt | 6 ------ tests/jean-luc-collette/CMakeLists.txt | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 tests/jean-luc-collette/CMakeLists.txt diff --git a/tests/examples/CMakeLists.txt b/tests/examples/CMakeLists.txt index e7e3879..51dc520 100644 --- a/tests/examples/CMakeLists.txt +++ b/tests/examples/CMakeLists.txt @@ -6,12 +6,6 @@ find_package(Qt5 COMPONENTS REQUIRED ) -file( - GLOB - usage_examples - *.cpp -) - foreach(f ${usage_examples}) get_filename_component(exampleName ${f} NAME_WE) add_executable(${exampleName} ${f}) diff --git a/tests/jean-luc-collette/CMakeLists.txt b/tests/jean-luc-collette/CMakeLists.txt new file mode 100644 index 0000000..edfba88 --- /dev/null +++ b/tests/jean-luc-collette/CMakeLists.txt @@ -0,0 +1,17 @@ +include_directories (${CMAKE_SOURCE_DIR}/src) + +file( + GLOB + usage_examples + *.cpp +) + +foreach(f ${usage_examples}) + get_filename_component(exampleName ${f} NAME_WE) + add_executable(${exampleName} ${f}) + target_link_libraries(${exampleName} ${OpenCV_LIBS}) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${exampleName} + DESTINATION bin + RENAME ${CMAKE_PROJECT_NAME}-${exampleName}) +endforeach(f) +