CMakeLists.txt 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. if(APPLE)
  2. set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
  3. else()
  4. if(MINGW)
  5. set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
  6. else()
  7. set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")
  8. endif()
  9. endif()
  10. link_directories(../cdp2k ../newsfsys)
  11. include_directories(../newinclude)
  12. add_executable(analjoin analjoin.c)
  13. target_link_libraries(analjoin cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  14. my_install(analjoin)
  15. add_executable(brktopi brktopi.c)
  16. target_link_libraries(brktopi cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  17. my_install(brktopi)
  18. add_executable(constrict constrict.c)
  19. target_link_libraries(constrict cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  20. my_install(constrict)
  21. add_executable(dshift dshift.c)
  22. target_link_libraries(dshift ${EXTRA_LIBRARIES})
  23. my_install(dshift)
  24. add_executable(envnu envnu.c)
  25. target_link_libraries(envnu cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  26. my_install(envnu)
  27. add_executable(features features.c)
  28. target_link_libraries(features cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  29. my_install(features)
  30. add_executable(flutter flutter.c)
  31. target_link_libraries(flutter cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  32. my_install(flutter)
  33. add_executable(fofex fofex.c)
  34. target_link_libraries(fofex cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  35. my_install(fofex)
  36. add_executable(frame frame.c)
  37. target_link_libraries(frame cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  38. my_install(frame)
  39. add_executable(freeze freeze.c)
  40. target_link_libraries(freeze cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  41. my_install(freeze)
  42. add_executable(gate gate.c)
  43. target_link_libraries(gate cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  44. my_install(gate)
  45. add_executable(get_partials get_partials.c)
  46. target_link_libraries(get_partials cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  47. my_install(get_partials)
  48. add_executable(grainex grainex.c)
  49. target_link_libraries(grainex cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  50. my_install(grainex)
  51. add_executable(hover hover.c)
  52. target_link_libraries(hover cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  53. my_install(hover)
  54. add_executable(manysil manysil.c)
  55. target_link_libraries(manysil cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  56. my_install(manysil)
  57. add_executable(mchanpan mchanpan.c)
  58. target_link_libraries(mchanpan cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  59. my_install(mchanpan)
  60. add_executable(mchanrev mchanrev.c)
  61. target_link_libraries(mchanrev cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  62. my_install(mchanrev)
  63. add_executable(mchiter mchiter.c)
  64. target_link_libraries(mchiter cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  65. my_install(mchiter)
  66. add_executable(mchshred mchshred.c)
  67. target_link_libraries(mchshred cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  68. my_install(mchshred )
  69. add_executable(mchzig mchzig.c)
  70. target_link_libraries(mchzig cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  71. my_install(mchzig)
  72. add_executable(mchstereo mchstereo.c)
  73. target_link_libraries(mchstereo cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  74. my_install(mchstereo)
  75. add_executable(mton mton.c)
  76. target_link_libraries(mton cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  77. my_install(mton)
  78. add_executable(multimix multimix.c)
  79. target_link_libraries(multimix cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  80. my_install(multimix)
  81. add_executable(newmix newmix.c)
  82. target_link_libraries(newmix cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  83. my_install(newmix)
  84. add_executable(oneform oneform.c)
  85. target_link_libraries(oneform cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  86. my_install(oneform)
  87. add_executable(peak sethares.c)
  88. target_link_libraries(peak cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  89. my_install(peak)
  90. add_executable(peakfind peakfind.c)
  91. target_link_libraries(peakfind cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  92. my_install(peakfind)
  93. add_executable(phase phase.c)
  94. target_link_libraries(phase cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  95. my_install(phase)
  96. add_executable(prefix prefix.c)
  97. target_link_libraries(prefix cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  98. my_install(prefix)
  99. add_executable(psow psow.c)
  100. target_link_libraries(psow cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  101. my_install(psow)
  102. add_executable(ptobrk ptobrk.c)
  103. target_link_libraries(ptobrk cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  104. my_install(ptobrk)
  105. add_executable(retime retime.c)
  106. target_link_libraries(retime cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  107. my_install(retime)
  108. add_executable(search search.c)
  109. target_link_libraries(search cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  110. my_install(search)
  111. add_executable(spacedesign spacedesign.c)
  112. target_link_libraries(spacedesign cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  113. my_install(spacedesign)
  114. add_executable(speclean speclean.c)
  115. target_link_libraries(speclean cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  116. my_install(speclean )
  117. add_executable(specnu specnu.c)
  118. target_link_libraries(specnu cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  119. my_install(specnu)
  120. add_executable(specross specross.c)
  121. target_link_libraries(specross cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  122. my_install(specross )
  123. add_executable(strans strans_multi.c)
  124. target_link_libraries(strans cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  125. my_install(strans)
  126. add_executable(texmchan texmchan.c texprepromch.c texture5mc.c
  127. ../texture/texperm.c ../texture/texture1.c
  128. ../texture/texture2.c ../texture/texture3.c ../texture/texture4.c )
  129. target_link_libraries(texmchan cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  130. my_install(texmchan)
  131. add_executable(topantail2 topantail2.c)
  132. target_link_libraries(topantail2 cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  133. my_install(topantail2)
  134. add_executable(wrappage wrappage.c)
  135. target_link_libraries(wrappage cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
  136. my_install(wrappage )