diff --git a/CMakeLists.txt b/CMakeLists.txt index ec5fff7..83e2067 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ OPTION (BUILD_APP "Build SciQLop application" ON) OPTION (BUILD_CORE "Build SciQLop Core module" ON) OPTION (BUILD_GUI "Build SciQLop GUI module" ON) OPTION (BUILD_PLUGINS "Build SciQLop plugins" ON) +OPTION (ENABLE_WIN32_CONSOLE "Enables console on Win32 platfrom" OFF) set(CMAKE_CXX_STANDARD 17) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 7171f11..1923e0f 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -10,7 +10,12 @@ QT5_WRAP_UI(UiGenerated_SRCS ui/MainWindow.ui ) -add_executable(sciqlopapp WIN32 ${app_SRCS} ${UiGenerated_SRCS}) +if(ENABLE_WIN32_CONSOLE) + add_executable(sciqlopapp ${app_SRCS} ${UiGenerated_SRCS}) +else() + add_executable(sciqlopapp WIN32 ${app_SRCS} ${UiGenerated_SRCS}) +endif() + if(NOT BUILD_SHARED_LIBS) add_definitions(-DQT_STATICPLUGIN) if(BUILD_PLUGINS)