CMakeLists.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. add_library(sinsy SHARED
  2. lib/converter/ConfGroup.cpp
  3. lib/converter/ConfManager.cpp
  4. lib/converter/Converter.cpp
  5. lib/converter/PhonemeInfo.cpp
  6. lib/converter/UnknownConf.cpp
  7. lib/converter/util_converter.cpp
  8. lib/hts_engine_API/HtsEngine.cpp
  9. lib/hts_engine_API/SynthConditionImpl.cpp
  10. lib/japanese/JConf.cpp
  11. lib/label/LabelData.cpp
  12. lib/label/LabelMaker.cpp
  13. lib/label/LabelMeasure.cpp
  14. lib/label/LabelPosition.cpp
  15. lib/label/LabelStream.cpp
  16. lib/label/LabelStrings.cpp
  17. lib/label/NoteGroup.cpp
  18. lib/label/NoteLabeler.cpp
  19. lib/label/PhonemeLabeler.cpp
  20. lib/label/SyllableLabeler.cpp
  21. lib/score/Beat.cpp
  22. lib/score/Dynamics.cpp
  23. lib/score/Key.cpp
  24. lib/score/Mode.cpp
  25. lib/score/Note.cpp
  26. lib/score/Pitch.cpp
  27. lib/score/ScorePosition.cpp
  28. lib/score/Slur.cpp
  29. lib/score/Syllabic.cpp
  30. lib/score/util_score.cpp
  31. lib/temporary/ScoreDoctor.cpp
  32. lib/temporary/TempScore.cpp
  33. lib/util/Configurations.cpp
  34. lib/util/DiphthongConverter.cpp
  35. lib/util/IStringable.cpp
  36. lib/util/InputFile.cpp
  37. lib/util/MacronTable.cpp
  38. lib/util/MultibyteCharRange.cpp
  39. lib/util/OutputFile.cpp
  40. lib/util/PhonemeTable.cpp
  41. lib/util/StringTokenizer.cpp
  42. lib/util/util_string.cpp
  43. lib/xml/XmlData.cpp
  44. lib/xml/XmlParser.cpp
  45. lib/xml/XmlReader.cpp
  46. lib/xml/XmlWriter.cpp
  47. lib/shm_ringbuffer/ringbuffer.cpp
  48. lib/Sinsy.cpp
  49. )
  50. include_directories(lib/util lib/score lib/japanese lib/converter lib/temporary lib/xml/ lib/shm_ringbuffer/ include)
  51. set (CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
  52. set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
  53. add_executable(sinsyNG bin/sinsy.cpp)
  54. target_link_libraries(sinsyNG sinsy espeak-ng sndfile samplerate)
  55. install(FILES include/sinsy.h lib/shm_ringbuffer/ringbuffer.h DESTINATION include/sinsy)
  56. install(TARGETS sinsy sinsyNG
  57. LIBRARY DESTINATION lib/${CMAKE_ARCH_TRIPLET}
  58. RUNTIME DESTINATION bin
  59. )