-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (36 loc) · 937 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
45
cmake_minimum_required(VERSION 3.0.2)
project(media_to_ascii VERSION 1.0.0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-error=unused-result -Wno-error=sign-compare -pedantic -march=native -O3 -ffast-math -Wno-stringop-overflow")
find_package(OpenCV 4 REQUIRED)
find_package(Curses REQUIRED)
if(OpenCV_FOUND)
message ("OpenCV package found")
else()
message (FATAL_ERROR "Cannot find OpenCV package")
endif()
if(Curses_FOUND)
message ("Curses package found")
else()
message (FATAL_ERROR "Cannot find Curses package")
endif()
include_directories(
include
${OpenCV_INCLUDE_DIRS}
${CURSES_INCLUDE_DIRS}
)
add_executable(
media_to_ascii
src/main.cpp
src/audio.cpp
src/helper.cpp
src/sarge.cpp
)
target_compile_options(media_to_ascii PRIVATE "-std=c++17" "-Werror")
target_link_libraries(
media_to_ascii
${OpenCV_LIBS}
${CURSES_LIBRARIES}
dl
m
pthread
)