Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoxiang committed Dec 7, 2024
1 parent 34323a1 commit d0bdf48
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ set(CMAKE_AUTOUIC ON)

find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)

if(WIN32)
message("Packaging for Windows")
set(CMAKE_EXE_LINKER_FLAGS "-static")
elseif(APPLE)
message("Packaging for macOS")
set_target_properties(add_schema PROPERTIES
MACOSX_BUNDLE TRUE
)
endif()

add_executable(add_schema
main.cpp
mainwindow.cpp
Expand All @@ -31,3 +21,13 @@ target_link_libraries(add_schema PRIVATE
Qt6::Gui
Qt6::Widgets
)

if(WIN32)
message("Packaging for Windows")
set(CMAKE_EXE_LINKER_FLAGS "-static")
elseif(APPLE)
message("Packaging for macOS")
set_target_properties(add_schema PROPERTIES
MACOSX_BUNDLE TRUE
)
endif()

0 comments on commit d0bdf48

Please sign in to comment.