Skip to content

Commit 1a3e917

Browse files
Added debug terminal
1 parent 18d8d4d commit 1a3e917

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@ project(StMFC)
44
set(CMAKE_CXX_STANDARD 20)
55
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
66

7-
add_executable(StMFC WIN32 #COULD NOT WORK FOR OTHER OS
7+
set(SOURCES
88
src/main.cpp
99
src/convert.cpp
1010
src/convert.hpp
1111
src/StMFC_GUI.cpp
1212
src/StMFC_GUI.hpp
1313
src/exceptions.hpp
1414
)
15+
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
16+
add_executable(StMFC ${SOURCES})
17+
else (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
18+
add_executable(StMFC WIN32 ${SOURCES})
19+
endif (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
20+
1521
set(BUILD_EXAMPLES OFF CACHE BOOL "")
1622
set(BUILD_PROGRAMS OFF CACHE BOOL "")
1723
set(BUILD_TESTING OFF CACHE BOOL "")

0 commit comments

Comments
 (0)