-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (36 loc) · 939 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required (VERSION 3.8.0)
project(testing_idk_poop CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wshadow -Weffc++")
add_executable(foo
chunk.cpp
chunk.hpp
common/do_args.hpp
common/hsv.cpp
common/hsv.hpp
common/jpeg.cpp
common/jpeg.hpp
common/png.cpp
common/png.hpp
common/pnm.cpp
common/pnm.hpp
#common/readPng.cpp
common/utils.cpp
common/utils.hpp
#common/writeJpeg.cpp
common/do_args.cpp
imageProcessor.cpp
imageProcessor.hpp
main.cpp
)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(foo ${OpenCV_LIBS})
find_package(PNG REQUIRED)
include_directories(${PNG_INCLUDE_DIR})
target_link_libraries(foo ${PNG_LIBRARY})
find_package(JPEG REQUIRED)
include_directories(${JPEG_INCLUDE_DIR})
target_link_libraries(foo ${JPEG_LIBRARY})