-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
32 lines (26 loc) · 926 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
cmake_minimum_required(VERSION 3.21)
project(abgx360gui)
set(CMAKE_CXX_STANDARD 23)
include(CMakeRC.cmake)
cmrc_add_resource_library(foo-resources
ALIAS foo::rc
NAMESPACE foo
abgx360gui/src/Images/logo_reloaded.png)
include_directories(abgx360gui/src)
# Set GTK3 for wxWidgets
set(wxWidgets_CONFIG_OPTIONS --toolkit=gtk3)
# Find wxWidgets
# Note that for MinGW users the order of libs is important!
find_package(wxWidgets REQUIRED net gl core base adv)
include(${wxWidgets_USE_FILE})
# Add executable
add_executable(abgx360gui
abgx360gui/src/abgx360gui.cpp
abgx360gui/src/abgx360gui.h
abgx360gui/src/abgx360guiApp.cpp
abgx360gui/src/abgx360guiApp.h)
# Link wxWidgets deps
# and for each of your dependent executable/library targets:
target_link_libraries(abgx360gui PRIVATE ${wxWidgets_LIBRARIES})
# Link resources
target_link_libraries(abgx360gui PRIVATE foo::rc)