Skip to content

Commit

Permalink
Merge branch 'master' into release/nofreeimage
Browse files Browse the repository at this point in the history
  • Loading branch information
rb-union authored Dec 5, 2024
2 parents d0c05bb + e07f219 commit 0de0e44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
image-editor (1.0.47) unstable; urgency=medium

* remove freeimage

-- Liu zheng <[email protected]> Fri, 15 Nov 2024 14:00:19 +0800

image-editor (1.0.46) unstable; urgency=medium

* chore(CI): add debian check workflow
Expand Down
19 changes: 7 additions & 12 deletions libimageviewer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
#定义需要的cmake版本
# Define the required cmake version
cmake_minimum_required(VERSION 3.10)

# 设置工程名字
# Set project name
project(libimageviewer VERSION 0.1.0)

# 检查dtkwidget版本
execute_process(COMMAND dpkg -s libdtkwidget-dev
COMMAND grep Version
TIMEOUT 5
OUTPUT_VARIABLE DWIDGET_VERSION_STR)
string(REPLACE "Version: " "" DWIDGET_VERSION_STR ${DWIDGET_VERSION_STR})
message(STATUS "BUILD DTKWidget VERSION ${DWIDGET_VERSION_STR}")
# Check dtkwidget version
find_package(DtkWidget REQUIRED)

if (${DWIDGET_VERSION_STR} VERSION_LESS "5.6.9-1")
message(STATUS "Use specific dtk watermakr, Version < 5.6.9-1")
if (${DtkWidget_VERSION} VERSION_LESS "5.6.9")
message(STATUS "Use specific dtk watermakr, Version < 5.6.9")
add_definitions(-DUSE_SPECIFIC_DTK_WATERMARK)
else()
message(STATUS "Use master dtk watermakr, Version >= 5.6.9-1")
message(STATUS "Use master dtk watermakr, Version >= 5.6.9")
endif()

set(CMAKE_CXX_STANDARD 14)
Expand Down

0 comments on commit 0de0e44

Please sign in to comment.