diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a942a6..e93555b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project(FramelessHelper LANGUAGES CXX) option(BUILD_EXAMPLES "Build examples." ON) option(TEST_UNIX "Test UNIX version (from Win32)." OFF) -set(BUILD_SHARED_LIBS ON) +set(BUILD_SHARED_LIBS OFF) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/examples/minimal/CMakeLists.txt b/examples/minimal/CMakeLists.txt index 4e846d3..eb990d5 100644 --- a/examples/minimal/CMakeLists.txt +++ b/examples/minimal/CMakeLists.txt @@ -8,18 +8,12 @@ find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets REQUIRED) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets REQUIRED) set(SOURCES - ../images.qrc main.cpp flwindow.h flwindow.cpp ) -if(WIN32) - enable_language(RC) - list(APPEND SOURCES ../example.rc ../example.manifest) -endif() - -add_executable(minimal WIN32 ${SOURCES}) +add_executable(minimal ${SOURCES}) target_link_libraries(minimal PRIVATE Qt${QT_VERSION_MAJOR}::Widgets diff --git a/framelesshelper.h b/framelesshelper.h index f144264..771827e 100644 --- a/framelesshelper.h +++ b/framelesshelper.h @@ -55,7 +55,7 @@ public: void resizeWindow(const QSize& windowSize); int titleBarHeight() { return m_titleBarHeight; } - int setTitleBarHeight(int height) { m_titleBarHeight = height; } + void setTitleBarHeight(int height) { m_titleBarHeight = height; } QRect titleBarRect(); QRegion titleBarRegion();