2017-04-28 17:28:16 +02:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
2017-05-02 18:17:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
#Configuration du projet
|
|
|
|
|
|
|
|
project(DisplayImage)
|
|
|
|
|
|
|
|
#Configuration de la sortie
|
|
|
|
|
|
|
|
set(EXECUTABLE_OUTPUT_PATH bin)
|
|
|
|
|
|
|
|
#Configuration de l'exécutable
|
|
|
|
|
|
|
|
file(
|
|
|
|
GLOB_RECURSE
|
|
|
|
|
|
|
|
source_files
|
|
|
|
|
|
|
|
src/*
|
|
|
|
)
|
|
|
|
|
|
|
|
#Recherche des bibliothèques
|
|
|
|
|
2017-04-28 17:28:16 +02:00
|
|
|
find_package( OpenCV REQUIRED )
|
2017-05-02 18:17:11 +02:00
|
|
|
#find_package(SFML 2 COMPONENTS system window graphics audio REQUIRED)
|
|
|
|
|
|
|
|
add_executable( DisplayImage ${source_files} )
|
2017-04-28 17:28:16 +02:00
|
|
|
target_link_libraries( DisplayImage ${OpenCV_LIBS} )
|
2017-05-02 18:17:11 +02:00
|
|
|
|