-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
50 lines (38 loc) · 1.07 KB
/
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
46
47
48
49
50
cmake_minimum_required(VERSION 3.25)
project(texto
LANGUAGES CXX
VERSION 1.0.0
DESCRIPTION "A text based renderer"
)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
add_compile_options(-Wall -Wextra -Wpedantic
-Wconversion -Wcast-align
-Wunused -Wold-style-cast
-Wpointer-arith -Wcast-qual
-Wno-missing-braces)
find_package(OpenCV REQUIRED)
add_executable(
texto
main.cpp
src/render.cpp
src/3d.cpp
src/image.cpp
src/video.cpp
src/scales.cpp
)
target_include_directories(texto PRIVATE includes/)
include_directories(".")
# EXTERNAL PACKAGES
# argparse
include(FetchContent)
FetchContent_Declare(
argparse
GIT_REPOSITORY https://github.com/p-ranav/argparse.git
)
FetchContent_MakeAvailable(argparse)
# add math dir
add_subdirectory(math)
target_link_libraries(texto ${OpenCV_LIBS} math argparse)
target_compile_options(texto PRIVATE -Wall -Wextra -Wpedantic -Wno-error)