+8
-4
CMakeLists.txt
+8
-4
CMakeLists.txt
···
14
14
add_compile_options(-fno-threadsafe-statics)
15
15
add_compile_options(-D_GLIBCXX_HAS_GTHREADS=0)
16
16
17
-
add_executable(ShortwaveApp WIN32 main.cpp)
17
+
if(MINGW)
18
+
set(WIN32_ICON shortwave.rc)
19
+
endif()
20
+
21
+
add_executable(ShortwaveApp WIN32 main.cpp ${WIN32_ICON})
18
22
19
23
# Add BASS library from libs directory
20
24
target_include_directories(ShortwaveApp PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
···
24
28
target_include_directories(ShortwaveApp PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
25
29
26
30
# Minimal static linking and avoid threading dependencies
27
-
target_link_options(ShortwaveApp PRIVATE
28
-
-static-libgcc
31
+
target_link_options(ShortwaveApp PRIVATE
32
+
-static-libgcc
29
33
-static-libstdc++
30
34
-static
31
35
-Wl,--subsystem,windows:5.01
···
51
55
RUNTIME_OUTPUT_DIRECTORY_DEBUG "${OUTPUT_DIR}"
52
56
RUNTIME_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIR}"
53
57
)
54
-
endif()
58
+
endif()
icon.aseprite
icon.aseprite
This is a binary file and will not be displayed.
shortwave.ico
shortwave.ico
This is a binary file and will not be displayed.
+1
shortwave.rc
+1
shortwave.rc
···
1
+
IDI_ICON1 ICON DISCARDABLE "shortwave.ico"