Update to use gtkmm 3

This commit is contained in:
James H
2022-01-03 14:49:52 +00:00
parent 0073d1f9c3
commit b4cb055995
4 changed files with 8 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ build-job: # This job runs in the build stage, which runs first.
- linux
before_script:
- apt update
- apt install -y cmake libgtk2.0-dev
- apt install -y cmake libgtkmm-3.0-dev
script:
- echo "Configuring"
- cmake -B build .

View File

@@ -3,8 +3,8 @@ set(CMAKE_CXX_STANDARD 17)
project(PiCamera)
# Find gtk+-2.0 library
# Find gtk+-4.0 library
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK2 REQUIRED gtk+-2.0)
pkg_check_modules(GTK REQUIRED gtkmm-3.0)
add_subdirectory(src)

View File

@@ -5,7 +5,7 @@ Camera for Raspberry Pi in C++ :)
Requirements:
```
cmake
libgtk2.0-dev
libgtkmm-3.0-dev
```
Then:

View File

@@ -5,16 +5,16 @@ add_executable(
target_include_directories(
JAMCS
PRIVATE
${GTK2_INCLUDE_DIRS}
${GTK_INCLUDE_DIRS}
)
target_link_directories(
JAMCS
PRIVATE
${GTK2_LIBRARY_DIRS}
${GTK_LIBRARY_DIRS}
)
target_link_libraries(
JAMCS
PRIVATE
${GTK2_LIBRARIES}
${GTK_LIBRARIES}
)
add_definitions (${GTK2_CFLAGS_OTHER})
add_definitions (${GTK_CFLAGS_OTHER})