CMakeLists.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. add_library(sekai SHARED
  2. src/mfcc.cpp
  3. src/midi.cpp
  4. src/SekaiContext.cpp
  5. src/VVDReader.cpp
  6. src/OLABuffer.cpp
  7. src/WorldSynth2.cpp
  8. src/common.cpp
  9. src/hzosc.cpp
  10. src/epr.cpp
  11. )
  12. set(HEADERS
  13. src/sekai/midi.h
  14. src/sekai/mfcc.h
  15. src/sekai/SekaiContext.h
  16. src/sekai/VVDReader.h
  17. src/sekai/OLABuffer.h
  18. src/sekai/WorldSynth2.h
  19. src/sekai/vvd.h
  20. src/sekai/common.h
  21. src/sekai/hzosc.h
  22. src/sekai/epr.h
  23. )
  24. ADD_DEFINITIONS(-std=c++11)
  25. set(SEKAI_VERSION_MAJOR 0)
  26. set(SEKAI_VERSION_MINOR 4)
  27. set(SEKAI_VERSION_PATCH 0)
  28. set(SEKAI_VERSION_STRING ${SEKAI_VERSION_MAJOR}.${SEKAI_VERSION_MINOR}.${SEKAI_VERSION_PATCH})
  29. set_target_properties(sekai PROPERTIES VERSION ${SEKAI_VERSION_STRING}
  30. SOVERSION ${SEKAI_VERSION_MAJOR})
  31. target_link_libraries(sekai fftw3)
  32. include_directories(src)
  33. install(FILES ${HEADERS} DESTINATION include/sekai)
  34. EXECUTE_PROCESS(COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH OUTPUT_VARIABLE
  35. CMAKE_ARCH_TRIPLET OUTPUT_STRIP_TRAILING_WHITESPACE)
  36. add_executable(wav2vvd src/wav2vvd.cpp)
  37. add_executable(vvd2wav src/vvd2wav.cpp)
  38. target_link_libraries(vvd2wav sekai world sndfile)
  39. target_link_libraries(wav2vvd sekai world sndfile)
  40. install(TARGETS sekai wav2vvd vvd2wav
  41. RUNTIME DESTINATION bin
  42. LIBRARY DESTINATION lib/${CMAKE_ARCH_TRIPLET}
  43. )
  44. #add_executable(realtime_demo examples/realtime_demo/jack.cpp examples/realtime_demo/main.cpp examples/realtime_demo/synth.cpp)
  45. #add_definitions(-std=gnu++0x)
  46. #target_link_libraries(realtime_demo jack world sndfile sekai pthread jsoncpp)
  47. #add_executable(mbrola examples/mbrolaclone/mbrola_dummy.cpp examples/mbrolaclone/voicebank_meta.cpp examples/mbrolaclone/voice_synth.cpp)
  48. #target_link_libraries(mbrola world sekai jsoncpp)