Skip to content

Commit 401e91e

Browse files
committed
glob locales to install
1 parent 5644b4b commit 401e91e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,24 +158,27 @@ set(CMAKE_REQUIRED_LIBRARIES ${LIBOBS_LIBRARIES})
158158
check_symbol_exists(obs_properties_add_color_alpha "obs-module.h" HAVE_OBS_PROP_ALPHA)
159159
configure_file("src/waveform_config.hpp.in" "include/waveform_config.hpp")
160160

161+
# collect all the locale files to install
162+
file(GLOB LOCALE_FILES "data/locale/*.ini")
163+
161164
if(WIN32)
162165
install(TARGETS waveform DESTINATION "obs-plugins/$<IF:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>,64bit,32bit>")
163166
install(FILES $<TARGET_PDB_FILE:waveform> DESTINATION "obs-plugins/$<IF:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>,64bit,32bit>" OPTIONAL)
164167
#install(TARGETS fftw3f DESTINATION "obs-plugins/$<IF:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>,64bit,32bit>")
165168
install(FILES "data/gradient.effect" DESTINATION "data/obs-plugins/waveform")
166-
install(FILES "data/locale/en-US.ini" DESTINATION "data/obs-plugins/waveform/locale")
169+
install(FILES ${LOCALE_FILES} DESTINATION "data/obs-plugins/waveform/locale")
167170
else()
168171
if(PACKAGED_INSTALL)
169172
install(TARGETS waveform DESTINATION "lib/obs-plugins")
170173
install(FILES "data/gradient.effect" DESTINATION "share/obs/obs-plugins/waveform")
171-
install(FILES "data/locale/en-US.ini" DESTINATION "share/obs/obs-plugins/waveform/locale")
174+
install(FILES ${LOCALE_FILES} DESTINATION "share/obs/obs-plugins/waveform/locale")
172175
else()
173176
if(APPLE)
174177
install(TARGETS waveform DESTINATION "waveform/bin")
175178
else()
176179
install(TARGETS waveform DESTINATION "waveform/bin/$<IF:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>,64bit,32bit>")
177180
endif()
178181
install(FILES "data/gradient.effect" DESTINATION "waveform/data/")
179-
install(FILES "data/locale/en-US.ini" DESTINATION "waveform/data/locale")
182+
install(FILES ${LOCALE_FILES} DESTINATION "waveform/data/locale")
180183
endif()
181184
endif()

0 commit comments

Comments
 (0)