diff --git a/CMakeLists.txt b/CMakeLists.txt index d44b609..54d9c14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ find_package(Qt6 6.5 REQUIRED COMPONENTS Core Widgets) qt_standard_project_setup() -qt_add_executable(SOM +qt_add_executable(som WIN32 MACOSX_BUNDLE src/main.cpp src/mainwindow.cpp @@ -14,7 +14,11 @@ qt_add_executable(SOM src/interface.h ) -target_link_libraries(SOM +set_target_properties(som PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/out" +) + +target_link_libraries(som PRIVATE Qt::Core Qt::Widgets @@ -24,14 +28,14 @@ add_subdirectory(plugins) include(GNUInstallDirs) -install(TARGETS SOM +install(TARGETS som BUNDLE DESTINATION . RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) qt_generate_deploy_app_script( - TARGET SOM + TARGET som OUTPUT_SCRIPT deploy_script NO_UNSUPPORTED_PLATFORM_ERROR ) diff --git a/plugins/CalculatorPlugin/CMakeLists.txt b/plugins/CalculatorPlugin/CMakeLists.txt index 32ab325..8b3a366 100644 --- a/plugins/CalculatorPlugin/CMakeLists.txt +++ b/plugins/CalculatorPlugin/CMakeLists.txt @@ -14,6 +14,10 @@ target_sources(CalculatorPlugin PRIVATE button.cpp button.h ) +set_target_properties(CalculatorPlugin PROPERTIES + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/out/plugins" +) + target_link_libraries(CalculatorPlugin PRIVATE Qt::Core Qt::Gui diff --git a/plugins/FileExplorerPlugin/CMakeLists.txt b/plugins/FileExplorerPlugin/CMakeLists.txt index 32263e6..3f0bcbb 100644 --- a/plugins/FileExplorerPlugin/CMakeLists.txt +++ b/plugins/FileExplorerPlugin/CMakeLists.txt @@ -13,6 +13,10 @@ target_sources(FileExplorerPlugin PRIVATE FileExplorerPlugin.cpp FileExplorerPlugin.h ) +set_target_properties(FileExplorerPlugin PROPERTIES + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/out/plugins" +) + target_link_libraries(FileExplorerPlugin PRIVATE Qt::Core Qt::Gui diff --git a/plugins/IrcClientPlugin/CMakeLists.txt b/plugins/IrcClientPlugin/CMakeLists.txt index f078156..f854923 100644 --- a/plugins/IrcClientPlugin/CMakeLists.txt +++ b/plugins/IrcClientPlugin/CMakeLists.txt @@ -23,6 +23,10 @@ target_sources(IrcClientPlugin PRIVATE topichandler.cpp topichandler.h ) +set_target_properties(IrcClientPlugin PROPERTIES + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/out/plugins" +) + target_link_libraries(IrcClientPlugin PRIVATE Qt::Core Qt::Gui diff --git a/plugins/ScreenShotPlugin/CMakeLists.txt b/plugins/ScreenShotPlugin/CMakeLists.txt index d3299a0..1f6e0f7 100644 --- a/plugins/ScreenShotPlugin/CMakeLists.txt +++ b/plugins/ScreenShotPlugin/CMakeLists.txt @@ -13,6 +13,10 @@ target_sources(ScreenShotPlugin PRIVATE ScreenShotPlugin.cpp ScreenShotPlugin.h ) +set_target_properties(ScreenShotPlugin PROPERTIES + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/out/plugins" +) + target_link_libraries(ScreenShotPlugin PRIVATE Qt::Core Qt::Gui diff --git a/plugins/TerminalPlugin/CMakeLists.txt b/plugins/TerminalPlugin/CMakeLists.txt index 395cea0..f8ec362 100644 --- a/plugins/TerminalPlugin/CMakeLists.txt +++ b/plugins/TerminalPlugin/CMakeLists.txt @@ -13,6 +13,10 @@ target_sources(TerminalPlugin PRIVATE TerminalPlugin.cpp TerminalPlugin.h ) +set_target_properties(TerminalPlugin PROPERTIES + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/out/plugins" +) + target_link_libraries(TerminalPlugin PRIVATE Qt::Core Qt::Gui diff --git a/plugins/WebBrowserPlugin/CMakeLists.txt b/plugins/WebBrowserPlugin/CMakeLists.txt index 0a6012d..80ef8d9 100644 --- a/plugins/WebBrowserPlugin/CMakeLists.txt +++ b/plugins/WebBrowserPlugin/CMakeLists.txt @@ -13,6 +13,10 @@ target_sources(WebBrowserPlugin PRIVATE WebBrowserPlugin.cpp WebBrowserPlugin.h ) +set_target_properties(WebBrowserPlugin PROPERTIES + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/out/plugins" +) + target_link_libraries(WebBrowserPlugin PRIVATE Qt::Core Qt::Gui