-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (31 loc) · 877 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
cmake_minimum_required(VERSION 3.28)
project(ovalToRaster)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5 COMPONENTS
Core
Gui
Widgets
REQUIRED)
find_package(doctest REQUIRED)
add_executable(ovalToRaster main.cpp
ovalRasterizer.cpp
ovalRasterizer.h
ovalViewer.cpp
ovalViewer.h)
add_executable(ovalToRasterTest test_ovalRasterizer.cpp
ovalRasterizer.cpp
ovalRasterizer.h)
target_compile_definitions(ovalToRasterTest PRIVATE TESTING)
if(EXISTS /usr/local/include)
target_include_directories(ovalToRasterTest PRIVATE /usr/local/include)
else()
target_include_directories(ovalToRasterTest PRIVATE /opt/homebrew/include)
endif()
target_link_libraries(ovalToRaster
Qt5::Core
Qt5::Gui
Qt5::Widgets
)