No Description

CMakeLists.txt 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. find_package(Java REQUIRED)
  2. include(UseJava)
  3. macro(add_example example_name jar_name)
  4. set(example_src "${example_name}.java")
  5. set(example_jar "${CMAKE_CURRENT_BINARY_DIR}/../../src/${jar_name}/upm_${jar_name}.jar")
  6. add_jar(${example_name} SOURCES ${example_src} INCLUDE_JARS ${example_jar})
  7. add_dependencies(${example_name} javaupm_${jar_name})
  8. endmacro()
  9. macro(add_example_with_path example_name jar_path jar_name)
  10. set(example_src "${example_name}.java")
  11. set(example_jar "${CMAKE_CURRENT_BINARY_DIR}/../../src/${jar_path}/upm_${jar_name}.jar")
  12. add_jar(${example_name} SOURCES ${example_src} INCLUDE_JARS ${example_jar})
  13. add_dependencies(${example_name} javaupm_${jar_name})
  14. endmacro()
  15. add_example(A110X_intrSample a110x)
  16. add_example(A110XSample a110x)
  17. add_example(ADC121C021Sample adc121c021)
  18. add_example(Adxl345Sample adxl345)
  19. add_example(Apds9002 apds9002)
  20. add_example(BISS0001Sample biss0001)
  21. add_example(BMPX8XSample bmpx8x)
  22. add_example(BuzzerSample buzzer)
  23. add_example(Buzzer_soundSample buzzer)
  24. add_example(CJQ4435Sample cjq4435)
  25. add_example(DS1307Sample ds1307)
  26. add_example(ENC03RSample enc03r)
  27. add_example(ES08ASample servo)
  28. add_example(GroveButtonSample grove)
  29. add_example(GroveButton_intrSample grove)
  30. add_example(GroveCollision grovecollision)
  31. add_example(GroveEHRSample groveehr)
  32. add_example(GroveEmg groveemg)
  33. add_example(GroveGsr grovegsr)
  34. add_example(GroveLed_multiSample grove)
  35. add_example(GroveLEDSample grove)
  36. add_example(GroveLightSample grove)
  37. add_example(GroveLineFinderSample grovelinefinder)
  38. add_example(GroveMDSample grovemd)
  39. add_example(GroveMoistureSample grovemoisture)
  40. add_example(GroveMQ3 gas)
  41. add_example(GroveMQ9 gas)
  42. add_example(GroveO2Example groveo2)
  43. add_example(GroveQTouch at42qt1070)
  44. add_example(GroveRelaySample grove)
  45. add_example(GroveRotarySample grove)
  46. add_example(GROVESCAMSample grovescam)
  47. add_example(GroveSlideSample grove)
  48. add_example(GroveSpeakerSample grovespeaker)
  49. add_example(GroveTempSample grove)
  50. add_example(GroveVDivSample grovevdiv)
  51. add_example(GroveWaterSample grovewater)
  52. add_example(GroveWFSSample grovewfs)
  53. add_example(GUVAS12DSample guvas12d)
  54. add_example(H3LIS331DLSample h3lis331dl)
  55. add_example(HCSR04Sample hcsr04)
  56. add_example(HM11Sample hm11)
  57. add_example(Hmc5883lSample hmc5883l)
  58. add_example(HMTRPSample hmtrp)
  59. add_example(HP20xExample hp20x)
  60. add_example(HTU21DSample htu21d)
  61. add_example(Itg3200Sample itg3200)
  62. add_example(Joystick12Sample joystick12)
  63. add_example(LDT0028Sample ldt0028)
  64. add_example(LoLSample lol)
  65. add_example(LSM303Sample lsm303)
  66. add_example(M24LR64ESample m24lr64e)
  67. add_example(MAX44000Sample max44000)
  68. add_example(MHZ16Sample mhz16)
  69. add_example(MicrophoneSample mic)
  70. add_example(MMA7455Sample mma7455)
  71. add_example(MMA7660Sample mma7660)
  72. add_example(MPL3115A2Sample mpl3115a2)
  73. add_example(MPR121Sample mpr121)
  74. add_example(MPU9150Sample mpu9150)
  75. add_example(MQ2Sample gas)
  76. add_example(MQ303ASample mq303a)
  77. add_example(MQ5Sample gas)
  78. add_example(GroveLEDBar my9221)
  79. add_example(NRF24L01_receiverSample nrf24l01)
  80. add_example(NRF24L01_transmitterSample nrf24l01)
  81. add_example(NUNCHUCKSample nunchuck)
  82. add_example(OTP538USample otp538u)
  83. add_example(PPD42NSSample ppd42ns)
  84. add_example(PulsensorSample pulsensor)
  85. add_example(RFR359FSample rfr359f)
  86. add_example(RotaryEncoderSample rotaryencoder)
  87. add_example(RPR220_intrSample rpr220)
  88. add_example(RPR220Sample rpr220)
  89. add_example(ST7735Sample st7735)
  90. add_example(StepMotorSample stepmotor)
  91. add_example(TM1637Sample tm1637)
  92. add_example(TP401Sample gas)
  93. add_example(TSL2561Sample tsl2561)
  94. add_example(TTP223Sample ttp223)
  95. add_example(Ublox6Sample ublox6)
  96. add_example(ULN200XASample uln200xa)
  97. add_example(WaterLevelSensor waterlevel)
  98. add_example(WT5001Sample wt5001)
  99. add_example(YG1006Sample yg1006)
  100. add_example(ZFM20Sample zfm20)
  101. add_example(Ad8232Example ad8232)
  102. add_example(Gp2y0aExample gp2y0a)
  103. add_example(Th02Example th02)
  104. add_example(FlexSensorExample flex)
  105. add_example(CWLSXXA_Example cwlsxxa)
  106. add_example(TEAMS_Example teams)
  107. add_example(APA102Sample apa102)
  108. add_example(TEX00_Example tex00)
  109. add_example(BMI160_Example bmi160)
  110. add_example(Tsl2561 tsl2561)
  111. add_example(AM2315Example am2315)
  112. add_example(MAX31855Example max31855)
  113. add_example(MAX5487Example max5487)
  114. add_example(MAXds3231mExample maxds3231m)
  115. add_example(ECS1030Example ecs1030)
  116. add_example(SM130Example sm130)
  117. if (MODBUS_FOUND)
  118. add_example(H803X_Example h803x)
  119. endif()
  120. if (BACNET_FOUND)
  121. add_example(E50HX_Example e50hx)
  122. endif()
  123. add_example(VCAP_Example vcap)
  124. add_example_with_path(Jhd1313m1_lcdSample lcd i2clcd)
  125. add_example_with_path(Jhd1313m1Sample lcd i2clcd)
  126. add_example_with_path(Lcm1602_i2cSample lcd i2clcd)
  127. add_example_with_path(Lcm1602_parallelSample lcd i2clcd)
  128. add_example_with_path(SSD1308_oledSample lcd i2clcd)
  129. add_example_with_path(SSD1327_oledSample lcd i2clcd)