-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (24 loc) · 748 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (24 loc) · 748 Bytes
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
project("PygaMasher")
cmake_minimum_required(VERSION 3.12)
set (CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -Wall)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
include(FindPkgConfig)
find_package(PkgConfig)
pkg_check_modules(GTKMM gtkmm-3.0)
# Add fec
add_subdirectory(external/fec)
add_executable(PygaMasher
commandrunner.cpp
main.cpp
mainwindow.cpp
imagewriter.cpp
imagereader.cpp
rsdecoder.cpp
rsencoder.cpp
)
target_link_libraries(PygaMasher stdc++fs pthread fec)
link_directories(${GTKMM_LIBRARY_DIRS})
target_include_directories(PygaMasher PRIVATE ${GTKMM_INCLUDE_DIRS} external)
target_link_libraries(PygaMasher ${GTKMM_LIBRARIES})