Fix install target

The new `DIRECTORY` line makes installation work with any build directory, not just `build`.

Using a relative `DESTINATION` path honors `CMAKE_INSTALL_PREFIX` instead of hardcoding it to `/usr`.
This commit is contained in:
runiq
2023-06-09 22:25:21 +02:00
committed by GitHub
parent 8ea9157743
commit 6140bceb75
+2 -2
View File
@@ -40,8 +40,8 @@ add_custom_target(copy_binaries ALL
configure_file(resources/manifest.ttl.in neural_amp_modeler.lv2/manifest.ttl)
configure_file(resources/neural_amp_modeler.ttl.in neural_amp_modeler.lv2/neural_amp_modeler.ttl)
install (DIRECTORY build/neural_amp_modeler.lv2
DESTINATION /usr/lib/lv2
install (DIRECTORY ${CMAKE_BINARY_DIR}/neural_amp_modeler.lv2
DESTINATION lib/lv2
)
set(CPACK_GENERATOR "DEB")