Skip to content

Commit

Permalink
use static fftw, usb and z libs
Browse files Browse the repository at this point in the history
Signed-off-by: Martin <[email protected]>
  • Loading branch information
Ho-Ro committed Jan 8, 2024
1 parent e6d863d commit 1b56a17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
2024-01-01 (e6d863d): next build system update
2024-01-01 (7f9eb94): build system update
2023-12-31 (3b12af2): prepare next release 3.4
2023-12-31 (98959ab): prepare next release 3.4
Expand Down
13 changes: 8 additions & 5 deletions openhantek/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

project(OpenHantek CXX)

if(WIN32)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
set(CMAKE_EXE_LINKER_FLAGS "-s")
set(EXECTYPE WIN32)
endif()

find_package(Qt5Widgets REQUIRED)
find_package(Qt5PrintSupport REQUIRED)
find_package(Qt5OpenGL REQUIRED)
Expand All @@ -12,6 +18,8 @@ set(CMAKE_AUTORCC ON)

if (Qt5Widgets_VERSION VERSION_LESS 5.4.0)
message(FATAL_ERROR "Minimum supported Qt5 version is 5.4.0!")
else()
message("-- Qt5 version is ${Qt5Widgets_VERSION}")
endif()

# include directories
Expand All @@ -34,11 +42,6 @@ add_custom_target(format SOURCES ".clang-format"
# here the translation magic happens
include(translations/Translations.cmake)

set(EXECTYPE "")
if(WIN32 AND MINGW)
set(EXECTYPE WIN32)
endif()

option(USE_OPENHANTEK_DRIVER "Use OpenHantek Windows driver" ON)

# Enable MacOSX bundle magic in the next line
Expand Down

0 comments on commit 1b56a17

Please sign in to comment.