fix build error on Windows
This commit is contained in:
parent
c684d3c0ac
commit
5e96c3fec6
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue