Windows build fixes.

- Include manifest.
- Add icon.
- Set subsystem to Windows.
This commit is contained in:
Bartosz Taudul 2024-03-16 18:30:43 +01:00
parent 2c4abf5f9f
commit 269c75103e
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
4 changed files with 11 additions and 2 deletions

View File

@ -154,7 +154,16 @@ endif()
include_directories(${INCLUDES}) include_directories(${INCLUDES})
link_libraries(${LIBS}) link_libraries(${LIBS})
add_executable(${PROJECT_NAME} ${PROFILER_FILES} ${COMMON_FILES} ${SERVER_FILES}) if(WIN32)
set(PROFILER_FILES ${PROFILER_FILES}
win32/Tracy.manifest
win32/Tracy.rc
)
add_executable(${PROJECT_NAME} WIN32 ${PROFILER_FILES} ${COMMON_FILES} ${SERVER_FILES})
else()
add_executable(${PROJECT_NAME} ${PROFILER_FILES} ${COMMON_FILES} ${SERVER_FILES})
endif()
target_link_libraries(${PROJECT_NAME} PRIVATE TracyImGui TracyCapstone TracyZstd TracyNfd) target_link_libraries(${PROJECT_NAME} PRIVATE TracyImGui TracyCapstone TracyZstd TracyNfd)
if(UNIX) if(UNIX)

View File

@ -1 +0,0 @@
IDI_ICON1 ICON "../../../icon/icon.ico"

1
profiler/win32/Tracy.rc Normal file
View File

@ -0,0 +1 @@
IDI_ICON1 ICON "../../icon/icon.ico"