We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18d8d4d commit 1a3e917Copy full SHA for 1a3e917
1 file changed
CMakeLists.txt
@@ -4,14 +4,20 @@ project(StMFC)
4
set(CMAKE_CXX_STANDARD 20)
5
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
6
7
-add_executable(StMFC WIN32 #COULD NOT WORK FOR OTHER OS
+set(SOURCES
8
src/main.cpp
9
src/convert.cpp
10
src/convert.hpp
11
src/StMFC_GUI.cpp
12
src/StMFC_GUI.hpp
13
src/exceptions.hpp
14
)
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
+
21
set(BUILD_EXAMPLES OFF CACHE BOOL "")
22
set(BUILD_PROGRAMS OFF CACHE BOOL "")
23
set(BUILD_TESTING OFF CACHE BOOL "")
0 commit comments