@@ -60,13 +60,12 @@ endif()
60
60
61
61
find_package (Threads REQUIRED)
62
62
63
- if (USE_SYSTEM_LIBS )
63
+ if (NOT ( APPLE OR WIN32 ) )
64
64
# Try to find the system-installed QScintilla without immediately failing
65
65
find_package (QScintilla QUIET )
66
66
endif ()
67
67
68
- # If QScintilla wasn’t found (either because USE_SYSTEM_LIBS wasn’t set or the system install is missing),
69
- # use the vendored version.
68
+ # If QScintilla wasn’t found use the vendored version.
70
69
if (NOT QScintilla_FOUND)
71
70
message (STATUS "System QScintilla not found. Falling back to bundled QScintilla." )
72
71
add_subdirectory (QScintilla_src-2.14.1)
@@ -202,9 +201,8 @@ SET(TS_FILES
202
201
${QTAPP_ROOT} /lang/sonic-pi_zh.ts
203
202
)
204
203
205
- # Enable tracy profiler on debug and rel with debug builds
206
204
if (WIN32 )
207
- SET ( SOURCES ${SOURCES} ${APP_ROOT} /external/tracy/TracyClient.cpp)
205
+ # do nothing
208
206
elseif (APPLE )
209
207
SET (SOURCES ${SOURCES} ${QTAPP_ROOT} /platform/macos.mm)
210
208
SET (SOURCES ${SOURCES} ${QTAPP_ROOT} /platform/macos.h)
@@ -359,8 +357,6 @@ endif()
359
357
if (WIN32 )
360
358
# Workaround Qt + MSVC 19 compile issue in release build.
361
359
target_compile_options (${APP_NAME} PRIVATE $<$<CXX_COMPILER_ID:MSVC >:/wd4005 /W3 /D_CRT_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DBOOST_DATE_TIME_NO_LIB>)
362
- target_compile_options (${APP_NAME} PRIVATE "$<$<CONFIG:DEBUG>:-DTRACY_ENABLE=1>" )
363
- target_compile_options (${APP_NAME} PRIVATE "$<$<CONFIG:RELWITHDEBINFO>:-DTRACY_ENABLE=1>" )
364
360
elseif (${CMAKE_SYSTEM_NAME} MATCHES Linux)
365
361
# Link librt
366
362
target_link_libraries (${APP_NAME} PRIVATE rt)
@@ -373,6 +369,12 @@ if(WIN32)
373
369
include (InstallRequiredSystemLibraries)
374
370
file (COPY ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION ${CMAKE_CURRENT_BINARY_DIR} /Release)
375
371
372
+ # Copy kissfft.dll from the API build directory to the GUI executable directory
373
+ add_custom_command (TARGET ${APP_NAME} POST_BUILD
374
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different
375
+ "${CMAKE_SOURCE_DIR} /build/api/vendor/kissfft-131.1.0/Release/kissfft-float.dll"
376
+ $<TARGET_FILE_DIR:${APP_NAME} >)
377
+
376
378
# Run winddeployqt if it can be found, to ensure installed dependencies
377
379
add_custom_command (TARGET ${APP_NAME} POST_BUILD
378
380
COMMAND ${CMAKE_PREFIX_PATH} /bin/windeployqt $<TARGET_FILE:${APP_NAME} >)
0 commit comments