CMakeLists.txt 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. if(APPLE)
  2. set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
  3. link_directories (/usr/local/lib)
  4. # find_library(AAIOLIB NAMES libaaio.a)
  5. else()
  6. if(MINGW OR MSVC)
  7. set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
  8. else()
  9. set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")
  10. link_directories (/usr/local/lib)
  11. # find_library(AAIOLIB NAMES libaaio.a)
  12. endif()
  13. endif()
  14. link_directories(../cdp2k ../newsfsys ../pvxio2)
  15. #include_directories(../newinclude /usr/local/include)
  16. include_directories(../newinclude)
  17. #OUT
  18. #add_executable(aminomap aminomap.c)
  19. #target_link_libraries(aminomap ${EXTRA_LIBRARIES})
  20. #my_install(aminomap)
  21. add_executable(bounce bounce.c)
  22. target_link_libraries(bounce cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  23. my_install(bounce)
  24. add_executable(brownian brownian.c)
  25. target_link_libraries(brownian cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  26. my_install(brownian)
  27. add_executable(cascade cascade.c)
  28. target_link_libraries(cascade cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  29. my_install(cascade)
  30. add_executable(chirikov chirikov.c)
  31. target_link_libraries(chirikov cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  32. my_install(chirikov)
  33. #OUT
  34. #add_executable(codonreader codonreader.c)
  35. #target_link_libraries(codonreader ${EXTRA_LIBRARIES})
  36. #my_install(codonreader)
  37. add_executable(crumble crumble.c)
  38. target_link_libraries(crumble cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  39. my_install(crumble)
  40. add_executable(crystal crystal.c)
  41. target_link_libraries(crystal cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  42. my_install(crystal)
  43. add_executable(cubicspline cubicspline.c)
  44. target_link_libraries(cubicspline cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  45. add_executable(distortt distortt.c)
  46. target_link_libraries(distortt cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  47. my_install(distortt)
  48. add_executable(dvdwind dvdwind.c)
  49. target_link_libraries(dvdwind cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  50. my_install(dvdwind)
  51. # Seems old version of superaccu, errors prevent building.
  52. # add_executable(example example.c)
  53. # target_link_libraries(example cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  54. # my_install(example)
  55. add_executable(flatten flatten.c)
  56. target_link_libraries(flatten cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  57. my_install(flatten)
  58. #OUT
  59. #add_executable(hztomidi hztomidi.c)
  60. #target_link_libraries(hztomidi ${EXTRA_LIBRARIES})
  61. #my_install(hztomidi)
  62. add_executable(impulse impulse.c)
  63. target_link_libraries(impulse cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  64. my_install(impulse)
  65. #OUT
  66. #add_executable(integratetime integratetime.c)
  67. #target_link_libraries(integratetime cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  68. #my_install(integratetime)
  69. #OUT
  70. #add_executable(miditohz miditohz.c)
  71. #target_link_libraries(miditohz ${EXTRA_LIBRARIES})
  72. #my_install(miditohz)
  73. add_executable(motor motor.c)
  74. target_link_libraries(motor cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  75. my_install(motor)
  76. add_executable(multiosc multiosc.c)
  77. target_link_libraries(multiosc cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  78. my_install(multiosc)
  79. add_executable(multisynth multisynth.c)
  80. target_link_libraries(multisynth cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  81. my_install(multisynth)
  82. add_executable(newscales newscales.c)
  83. target_link_libraries(newscales cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  84. my_install(newscales)
  85. add_executable(notchinvert notchinvert.c)
  86. target_link_libraries(notchinvert cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  87. my_install(notchinvert)
  88. add_executable(peakiso peakiso.c)
  89. target_link_libraries(peakiso cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  90. my_install(peakiso)
  91. #OUT
  92. #add_executable(perms perms.c)
  93. #target_link_libraries(perms ${EXTRA_LIBRARIES})
  94. #my_install(perms)
  95. add_executable(pulser pulser.c)
  96. target_link_libraries(pulser cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  97. my_install(pulser)
  98. add_executable(refocus refocus.c)
  99. target_link_libraries(refocus cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  100. my_install(refocus)
  101. add_executable(repeater repeater.c)
  102. target_link_libraries(repeater cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  103. my_install(repeater)
  104. #OUT
  105. #add_executable(rhymorph rhymorph.c)
  106. #target_link_libraries(rhymorph cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  107. #my_install(rhymorph)
  108. #OUT
  109. #add_executable(rhymorph2 rhymorph2.c)
  110. #target_link_libraries(rhymorph2 cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  111. #my_install(rhymorph2)
  112. add_executable(rotor rotor.c)
  113. target_link_libraries(rotor cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  114. my_install(rotor)
  115. add_executable(scramble scramble.c)
  116. target_link_libraries(scramble cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  117. my_install(scramble)
  118. add_executable(smooth smooth.c)
  119. target_link_libraries(smooth cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  120. my_install(smooth)
  121. add_executable(sorter sorter.c)
  122. target_link_libraries(sorter cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  123. my_install(sorter)
  124. add_executable(specanal specanal.c)
  125. target_link_libraries(specanal cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  126. my_install(specanal)
  127. add_executable(specav specav.c)
  128. target_link_libraries(specav cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  129. my_install(specav)
  130. add_executable(specfnu specfnu.c)
  131. target_link_libraries(specfnu cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  132. my_install(specfnu)
  133. add_executable(specfold specfold.c)
  134. target_link_libraries(specfold cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  135. my_install(specfold)
  136. add_executable(spectstr spectstr.c)
  137. target_link_libraries(spectstr cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  138. my_install(spectstr)
  139. add_executable(spectune spectune.c)
  140. target_link_libraries(spectune cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  141. my_install(spectune)
  142. add_executable(spin spin.c)
  143. target_link_libraries(spin cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  144. my_install(spin)
  145. add_executable(splinter splinter.c)
  146. target_link_libraries(splinter cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  147. my_install(splinter)
  148. add_executable(strands strands.c)
  149. if(WIN32)
  150. target_link_libraries(strands cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  151. else()
  152. target_link_libraries(strands cdp2k sfsys pvxio2 aaio ${EXTRA_LIBRARIES})
  153. endif()
  154. my_install(strands)
  155. add_executable(stutter stutter.c)
  156. target_link_libraries(stutter cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  157. my_install(stutter)
  158. # error preventing build
  159. add_executable(synfilt synfilt.c)
  160. target_link_libraries(synfilt cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  161. my_install(synfilt)
  162. add_executable(synspline synspline.c)
  163. target_link_libraries(synspline cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  164. my_install(synspline)
  165. add_executable(newsynth synthesis.c)
  166. if(WIN32)
  167. target_link_libraries(newsynth cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  168. else()
  169. target_link_libraries(newsynth cdp2k sfsys pvxio2 aaio ${EXTRA_LIBRARIES})
  170. endif()
  171. my_install(newsynth)
  172. add_executable(tesselate tesselate.c)
  173. target_link_libraries(tesselate cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  174. my_install(tesselate)
  175. add_executable(tremenv tremenv.c)
  176. target_link_libraries(tremenv cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  177. my_install(tremenv)
  178. add_executable(ts timeseries.c)
  179. target_link_libraries(ts cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  180. my_install(ts)
  181. add_executable(tsconvert ts_convert.c)
  182. target_link_libraries(tsconvert ${EXTRA_LIBRARIES})
  183. my_install(tsconvert)
  184. add_executable(tweet tweet.c)
  185. target_link_libraries(tweet cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  186. my_install(tweet)
  187. add_executable(unknot unknot.c)
  188. target_link_libraries(unknot cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  189. my_install(unknot)
  190. add_executable(verges verges.c)
  191. target_link_libraries(verges cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  192. my_install(verges)
  193. add_executable(waveform waveform.c)
  194. target_link_libraries(waveform cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  195. my_install(waveform)
  196. #OUT
  197. #add_executable(wavmedian wavmedian.c)
  198. #target_link_libraries(wavmedian cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  199. #my_install(wavmedian)