correction des fichiers cmake
This commit is contained in:
parent
201944f53c
commit
2023e87a32
2 changed files with 17 additions and 6 deletions
|
@ -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})
|
||||
|
|
17
tests/jean-luc-collette/CMakeLists.txt
Normal file
17
tests/jean-luc-collette/CMakeLists.txt
Normal file
|
@ -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)
|
||||
|
Loading…
Reference in a new issue