Skip to content

Commit

Permalink
gui: Enable console on debug builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Jan 2, 2015
1 parent 99cac77 commit 5ddb92f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions gui/CMakeLists.txt
Expand Up @@ -72,12 +72,7 @@ include_directories(
${QT_INCLUDES}
)

if (WIN32)
# Use Windows subsystem (i.e., no console).
set (qapitrace_SUBSYSTEM "WIN32")
endif ()

add_executable(qapitrace ${qapitrace_SUBSYSTEM} ${qapitrace_SRCS} ${qapitrace_UIS_H})
add_executable(qapitrace ${qapitrace_SRCS} ${qapitrace_UIS_H})

target_link_libraries (qapitrace
image
Expand All @@ -93,10 +88,15 @@ if (APPLE)
# Recent builds of Qt no longer support i386 architecture
set_target_properties (qapitrace PROPERTIES OSX_ARCHITECTURES x86_64)
endif ()
if (MSVC)
# When the Windows subsystem is chosen by default MSVC expects WinMain()
# entry point, but we rather use plain old main() everywhere.
set_target_properties (qapitrace PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup")

if (WIN32 AND NOT (CMAKE_BUILD_TYPE STREQUAL "Debug"))
# Use Windows subsystem (i.e., no console).
set_target_properties (qapitrace PROPERTIES CMAKE_WIN32_EXECUTABLE TRUE)
if (MSVC)
# When the Windows subsystem is chosen by default MSVC expects WinMain()
# entry point, but we rather use plain old main() everywhere.
set_target_properties (qapitrace PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup")
endif ()
endif ()


Expand Down

0 comments on commit 5ddb92f

Please sign in to comment.