Skip to content

Commit

Permalink
Move Unity to a generator expression style (#112)
Browse files Browse the repository at this point in the history
per convo with reuk
  • Loading branch information
baconpaul authored Aug 20, 2024
1 parent 3b895be commit b8c3c42
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,23 @@ else()
if (${CMAKE_UNITY_BUILD})
add_library(sst-jucegui-juce-requirements STATIC)
target_link_libraries(sst-jucegui-juce-requirements PRIVATE juce::juce_gui_basics)
get_target_property(incl juce::juce_gui_basics INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(defn juce::juce_gui_basics INTERFACE_COMPILE_DEFINITIONS)

target_compile_definitions(sst-jucegui-juce-requirements
INTERFACE
$<TARGET_PROPERTY:sst-jucegui-juce-requirements,COMPILE_DEFINITIONS>)

target_include_directories(sst-jucegui-juce-requirements
INTERFACE
$<TARGET_PROPERTY:sst-jucegui-juce-requirements,INCLUDE_DIRECTORIES>)


target_include_directories(sst-jucegui-juce-requirements PUBLIC ${incl})
target_compile_definitions(sst-jucegui-juce-requirements PUBLIC
${defn}
JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED=1
$<IF:$<CONFIG:Debug>,DEBUG=1,NDEBUG=1>
$<IF:$<CONFIG:Debug>,JUCE_DEBUG=1,JUCE_DEBUG=0>

JUCE_USE_CURL=0
JUCE_WEB_BROWSER=0
JUCE_JACK=0
JUCE_ALSA=0
JUCE_WASAPI=0
JUCE_STANDALONE_APPLICATION=0
JUCE_DIRECTSOUND=0

)

set_target_properties(sst-jucegui-juce-requirements PROPERTIES UNITY_BUILD FALSE)
Expand Down

0 comments on commit b8c3c42

Please sign in to comment.