Skip to content

Commit b136b43

Browse files
committed
working version that builds with Qt
1 parent 60520da commit b136b43

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

cesium.code-workspace

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"terminal.integrated.env.windows": {
6262
"PATH": "${workspaceFolder}/buildtools/bin/zig-0.15.1;${workspaceFolder}/buildtools/llvm-21.1.0/bin;${env:PATH}"
6363
},
64+
"lldb.verboseLogging": true,
6465
},
6566
"extensions": {
6667
// See http://go.microsoft.com/fwlink/?LinkId=827846

cesium/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ endif()
3737
# Clang-specific flags
3838
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
3939
target_compile_options(cesium PRIVATE -Wno-unused-parameter)
40+
# Fix lld-link warning about multiple entry points
41+
if(WIN32)
42+
target_link_options(cesium PRIVATE -Xlinker /ENTRY:wWinMainCRTStartup)
43+
endif()
4044
endif()
4145

4246
target_link_libraries(cesium
@@ -49,6 +53,17 @@ target_link_libraries(cesium
4953
tree-sitter-cpp
5054
)
5155

56+
# Deploy Qt libraries after build (for debug/development)
57+
if(WIN32)
58+
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS ${QT6_INSTALL_PREFIX}/bin)
59+
if(WINDEPLOYQT_EXECUTABLE)
60+
add_custom_command(TARGET cesium POST_BUILD
61+
COMMAND ${WINDEPLOYQT_EXECUTABLE} --debug --no-translations --no-system-d3d-compiler $<TARGET_FILE:cesium>
62+
COMMENT "Deploying Qt libraries"
63+
)
64+
endif()
65+
endif()
66+
5267
# Installation rules
5368
install(TARGETS cesium
5469
RUNTIME DESTINATION bin

0 commit comments

Comments
 (0)