Fixes to testdata cmake script.

looper
Ben Niemann 5 years ago
parent 82c6857803
commit fc33f07c25
  1. 1
      CMakeLists.txt
  2. 3
      bin/update_license
  3. 2
      testdata/CMakeLists.txt

@ -116,3 +116,4 @@ endmacro(add_cpp_capnp)
add_subdirectory(noisicaa)
add_subdirectory(noisidev)
add_subdirectory(data)
add_subdirectory(testdata)

@ -37,6 +37,7 @@ DEFAULT_TYPEMAP = {
'*.h': 'text/x-c++',
'*.sh': 'text/x-shellscript',
'*.capnp': 'text/x-capnp',
'*.csnd': 'text/x-csound',
'CMakeLists.txt': 'text/x-cmake',
}
@ -46,6 +47,7 @@ TYPE_PROPS = {
'text/x-cmake': (None, None, '# ', '#'),
'text/x-c++': ('/*', ' */', ' * ', '//'),
'text/x-capnp': (None, None, '# ', None),
'text/x-csound': ('<CsLicense>', '</CsLicense>', '', '<CsoundSynthesizer>'),
'application/xml': ('<!--', '-->', ' ', '<?'),
}
@ -59,6 +61,7 @@ DIRS = [
('3rdparty', 'setup.py', DEFAULT_TYPEMAP),
('data/csound', '*.csnd', {'*': 'application/xml'}),
('data/presets', '*.preset', {'*': 'application/xml'}),
('testdata', '*', DEFAULT_TYPEMAP),
]
SKIP_DIRS = [

@ -21,7 +21,7 @@
macro(render_wav src dest)
add_custom_command(
OUTPUT ${dest}
COMMAND csound -o${dest} ${CMAKE_CURRENT_LIST_DIR}/${src}
COMMAND LD_LIBRARY_PATH=$ENV{VIRTUAL_ENV}/lib csound -o${dest} ${CMAKE_CURRENT_LIST_DIR}/${src}
DEPENDS ${CMAKE_CURRENT_LIST_DIR}/${src}
)
endmacro(render_wav)

Loading…
Cancel
Save