Browse Source

cmake: Build win32 gui application if custom UI available

Signed-off-by: falkTX <falktx@falktx.com>
pull/421/head
falkTX 2 years ago
parent
commit
0b5d0c186b
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      cmake/DPF-plugin.cmake

+ 3
- 0
cmake/DPF-plugin.cmake View File

@@ -267,6 +267,9 @@ function(dpf__build_jack NAME HAS_UI)
"${APPLE_COREMIDI_FRAMEWORK}")
elseif(WIN32)
target_link_libraries("${NAME}-jack" PRIVATE "dsound" "ole32" "winmm")
if(HAS_UI)
set_target_properties("${NAME}-jack" PROPERTIES WIN32_EXECUTABLE TRUE)
endif()
endif()
endfunction()



Loading…
Cancel
Save