Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.64 KB | None | 0 0
  1. include(FindPackageHandleStandardArgs)
  2.  
  3. #=============================================================
  4. #
  5. # The following suffixes cause searching for header files and libraries:
  6. #
  7. #=============================================================
  8. set(_suffixes
  9. # If these ever change, things will break.
  10. dxf_parser
  11. fb_abstraction
  12. ini_parser
  13. kinematics/model_core
  14. kinematics/model1
  15. kinematics/model2
  16. file_manager/file_manager_core
  17. file_manager/file_manager_core_types
  18. file_manager/file_manager_proxy_client
  19. file_manager/file_manager_proxy_server
  20. file_manager/file_manager_proxy_types
  21. fingerprint/fingerprint_core
  22. fingerprint/fingerprint_core_types
  23. fingerprint/fingerprint_proxy_client
  24. fingerprint/fingerprint_proxy_server
  25. fingerprint/fingerprint_proxy_types
  26. message_buffer/message_buffer_core
  27. message_buffer/message_buffer_core_types
  28. motion/motion_core_types
  29. motion/motion_core
  30. motion/motion_proxy_client
  31. motion/motion_proxy_server
  32. motion/motion_proxy_types
  33. proxy/client_proxy
  34. proxy/server_proxy
  35. proxy/proxy_core
  36. osal
  37. ref_registry
  38. busal
  39. busal/profile_ds402/profile_ds402_core_types
  40. busal/profile_ds402/profile_ds402_core
  41. busal/service_ecatmkpa15/service_ecatmkpa15_core/dmkpa_support
  42. busal/service_ecatmkpa15/service_ecatmkpa15_core_types
  43. busal/service_ecatmkpa15/service_ecatmkpa15_core
  44. busal/service_ecatmkpa15/service_ecatmkpa15_proxy_client
  45. busal/service_ecatmkpa15/service_ecatmkpa15_proxy_server
  46. busal/service_ecatmkpa15/service_ecatmkpa15_proxy_types
  47. busal/profile_simulation/profile_simulation_types
  48. busal/profile_simulation/profile_simulation_core
  49. busal/profile_vrep/profile_vrep_types
  50. busal/profile_vrep/profile_vrep_core
  51. busal/profile_vrep/profile_vrep_client
  52. cycle_proc
  53. )
  54.  
  55. set(_modk_paths "${MODK_SEARCH_PATH}/"
  56. "${CMAKE_HOME_DIRECTORY}../../")
  57.  
  58. function(_MoDK_FIND_COMPONENT _var _hdr _hdr_only)
  59. set(_version "@VERSION@")
  60. set(MoDK_VERSION_STRING ${_version})
  61. set(CMAKE_FIND_LIBRARY_SUFFIXES .a;.so;.a.${_version};.so.${_version};.lib)
  62. find_path(MoDK_${_var}_INCLUDE_DIR ${_hdr}
  63. PATHS
  64. ${_modk_paths}
  65. ${_modk_paths}/include
  66. PATH_SUFFIXES
  67. ${_suffixes}
  68. )
  69. if(NOT ${_hdr_only})
  70. find_library(MoDK_${_var}_LIBRARY
  71. NAMES ${_var}
  72. PATHS
  73. ${_modk_paths}
  74. ${_modk_paths}/lib
  75. PATH_SUFFIXES
  76. ${_suffixes}
  77. )
  78. set(LIBRARY_ARG MoDK_${_var}_LIBRARY)
  79. endif()
  80. unset(MoDK_FOUND) # avoid parent scope variable usage
  81. FIND_PACKAGE_HANDLE_STANDARD_ARGS(MoDK REQUIRED_VARS MoDK_${_var}_INCLUDE_DIR ${LIBRARY_ARG} VERSION_VAR MoDK_VERSION_STRING
  82. # MoDK_INCLUDE_DIRS MoDK_LIBRARIES
  83. )
  84.  
  85. mark_as_advanced(MoDK_${_var}_INCLUDE_DIR MoDK_VERSION_STRING ${LIBRARY_ARG}
  86. # MoDK_INCLUDE_DIRS MoDK_LIBRARIES
  87. )
  88. if(MoDK_FOUND OR MODK_FOUND) # old CMake versions set 'all upper' variable as FOUND
  89. set(MoDK_FOUND "TRUE" PARENT_SCOPE)
  90. set(MoDK_INCLUDE_DIRS ${MoDK_INCLUDE_DIRS} ${MoDK_${_var}_INCLUDE_DIR} PARENT_SCOPE)
  91. set(MoDK_LIBRARIES ${MoDK_LIBRARIES} ${MoDK_${_var}_LIBRARY} PARENT_SCOPE)
  92. endif()
  93.  
  94. endfunction()
  95.  
  96. if(NOT MoDK_FIND_COMPONENTS)
  97. _MoDK_FIND_COMPONENT(dmkpa_support dmkpa_unified.h 1)
  98. _MoDK_FIND_COMPONENT(dxf_parser dxf_parser.h 0)
  99. _MoDK_FIND_COMPONENT(ini_parser ini_parser.h 0)
  100. _MoDK_FIND_COMPONENT(model_core kin_transform.h 1)
  101. _MoDK_FIND_COMPONENT(model1 model1_nearestpoint.h 0)
  102. _MoDK_FIND_COMPONENT(model2 model2_nearestpoint.h 0)
  103. _MoDK_FIND_COMPONENT(fingerprint_core get_act.h 0)
  104. _MoDK_FIND_COMPONENT(fingerprint_core_types fingerprint_types.h 1)
  105. _MoDK_FIND_COMPONENT(fingerprint_proxy_client pc_get_act.h 0)
  106. _MoDK_FIND_COMPONENT(fingerprint_proxy_server ps_get_act.h 0)
  107. _MoDK_FIND_COMPONENT(fingerprint_proxy_types proxy_get_act.h 1)
  108. _MoDK_FIND_COMPONENT(file_manager_core create_file.h 0)
  109. _MoDK_FIND_COMPONENT(file_manager_core_types file_manager_result.h 1)
  110. _MoDK_FIND_COMPONENT(file_manager_proxy_client pc_create_file.h 0)
  111. _MoDK_FIND_COMPONENT(file_manager_proxy_server ps_create_file.h 0)
  112. _MoDK_FIND_COMPONENT(file_manager_proxy_types proxy_create_file.h 1)
  113. _MoDK_FIND_COMPONENT(message_buffer_core message_buffer.h 0)
  114. _MoDK_FIND_COMPONENT(message_buffer_core_types message_buffer.h 1)
  115. _MoDK_FIND_COMPONENT(motion_core_types mctypes.h 0)
  116. _MoDK_FIND_COMPONENT(motion_proxy_client pc_add_axis_to_group.h 0)
  117. _MoDK_FIND_COMPONENT(motion_proxy_server ps_add_axis_to_group.h 0)
  118. _MoDK_FIND_COMPONENT(motion_proxy_types proxy_add_axis_to_group.h 1)
  119. _MoDK_FIND_COMPONENT(motion_core mc.h 0)
  120. _MoDK_FIND_COMPONENT(profile_ds402_core_types profile_ds402_parser.h 1)
  121. _MoDK_FIND_COMPONENT(profile_ds402_core profile_ds402.h 0)
  122. _MoDK_FIND_COMPONENT(service_ecatmkpa15_core_types ecatmkpa15_parser.h 1)
  123. _MoDK_FIND_COMPONENT(service_ecatmkpa15_proxy_client pc_read_pi.h 0)
  124. _MoDK_FIND_COMPONENT(service_ecatmkpa15_proxy_server ps_read_pi.h 0)
  125. _MoDK_FIND_COMPONENT(service_ecatmkpa15_proxy_types proxy_read_pi.h 1)
  126. _MoDK_FIND_COMPONENT(service_ecatmkpa15_core ecatmkpa15_service.h 0)
  127. _MoDK_FIND_COMPONENT(profile_simulation_types profile_simulation_result.h 1)
  128. _MoDK_FIND_COMPONENT(profile_simulation_core profile_simulation.h 0)
  129. _MoDK_FIND_COMPONENT(profile_vrep_types vrep_parser.h 1)
  130. _MoDK_FIND_COMPONENT(profile_vrep_core profile_vrep.h 0)
  131. _MoDK_FIND_COMPONENT(profile_vrep_client pc_configuration_vrep.h 0)
  132. _MoDK_FIND_COMPONENT(busal service.h 1)
  133. _MoDK_FIND_COMPONENT(cycle_proc cycle_proc.h 0)
  134. _MoDK_FIND_COMPONENT(client_proxy pc.h 0)
  135. _MoDK_FIND_COMPONENT(server_proxy ps.h 0)
  136. _MoDK_FIND_COMPONENT(proxy_core proxy_fb_interface.h 0)
  137. _MoDK_FIND_COMPONENT(ref_registry ref_registry.h 0)
  138. _MoDK_FIND_COMPONENT(osal osal_type.h 0)
  139. else()
  140. foreach(MoDK_component ${MoDK_FIND_COMPONENTS})
  141. if(MoDK_component STREQUAL "dmkpa_support")
  142. _MoDK_FIND_COMPONENT(dmkpa_support dmkpa_unified.h 1)
  143. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  144. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  145. endif()
  146. endif()
  147. if(MoDK_component STREQUAL "dxf_parser")
  148. _MoDK_FIND_COMPONENT(dxf_parser dxf_parser.h 0)
  149. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  150. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  151. endif()
  152. endif()
  153. if(MoDK_component STREQUAL "ini_parser")
  154. _MoDK_FIND_COMPONENT(ini_parser ini_parser.h 0)
  155. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  156. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  157. endif()
  158. endif()
  159. if(MoDK_component STREQUAL "fingerprint_core")
  160. _MoDK_FIND_COMPONENT(fingerprint_core get_act.h 0)
  161. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  162. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  163. endif()
  164. endif()
  165. if(MoDK_component STREQUAL "fingerprint_core_types")
  166. _MoDK_FIND_COMPONENT(fingerprint_core_types fingerprint_types.h 1)
  167. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  168. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  169. endif()
  170. endif()
  171. if(MoDK_component STREQUAL "fingerprint_proxy_client")
  172. _MoDK_FIND_COMPONENT(fingerprint_proxy_client pc_get_act.h 0)
  173. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  174. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  175. endif()
  176. endif()
  177. if(MoDK_component STREQUAL "fingerprint_proxy_server")
  178. _MoDK_FIND_COMPONENT(fingerprint_proxy_server ps_get_act.h 0)
  179. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  180. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  181. endif()
  182. endif()
  183. if(MoDK_component STREQUAL "fingerprint_proxy_types")
  184. _MoDK_FIND_COMPONENT(fingerprint_proxy_types proxy_get_act.h 1)
  185. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  186. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  187. endif()
  188. endif()
  189. if(MoDK_component STREQUAL "file_manager_core")
  190. _MoDK_FIND_COMPONENT(file_manager_core create_file.h 0)
  191. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  192. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  193. endif()
  194. endif()
  195. if(MoDK_component STREQUAL "file_manager_core_types")
  196. _MoDK_FIND_COMPONENT(file_manager_core_types file_manager_types.h 1)
  197. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  198. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  199. endif()
  200. endif()
  201. if(MoDK_component STREQUAL "model_core")
  202. _MoDK_FIND_COMPONENT(model_core kin_transform.h 1)
  203. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  204. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  205. endif()
  206. endif()
  207. if(MoDK_component STREQUAL "model1")
  208. _MoDK_FIND_COMPONENT(model1 model1_nearestpoint.h 0)
  209. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  210. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  211. endif()
  212. endif()
  213. if(MoDK_component STREQUAL "model2")
  214. _MoDK_FIND_COMPONENT(model2 model2_nearestpoint.h 0)
  215. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  216. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  217. endif()
  218. endif()
  219. if(MoDK_component STREQUAL "message_buffer_core")
  220. _MoDK_FIND_COMPONENT(message_buffer_core message_buffer.h 0)
  221. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  222. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  223. endif()
  224. endif()
  225. if(MoDK_component STREQUAL "message_buffer_core_types")
  226. _MoDK_FIND_COMPONENT(message_buffer_core_types message_buffer.h 0)
  227. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  228. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  229. endif()
  230. endif()
  231. if(MoDK_component STREQUAL "motion_core_types")
  232. _MoDK_FIND_COMPONENT(motion_core_types mctypes.h 1)
  233. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  234. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  235. endif()
  236. endif()
  237. if(MoDK_component STREQUAL "motion_core")
  238. _MoDK_FIND_COMPONENT(motion_core mc.h 0)
  239. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  240. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  241. endif()
  242. endif()
  243. if(MoDK_component STREQUAL "motion_proxy_client")
  244. _MoDK_FIND_COMPONENT(motion_proxy_client pc_add_axis_to_group.h 0)
  245. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  246. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  247. endif()
  248. endif()
  249. if(MoDK_component STREQUAL "motion_proxy_server")
  250. _MoDK_FIND_COMPONENT(motion_proxy_server ps_add_axis_to_group.h 0)
  251. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  252. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  253. endif()
  254. endif()
  255. if(MoDK_component STREQUAL "motion_proxy_types")
  256. _MoDK_FIND_COMPONENT(motion_proxy_types proxy_add_axis_to_group.h 1)
  257. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  258. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  259. endif()
  260. endif()
  261. if(MoDK_component STREQUAL "profile_ds402_core_types")
  262. _MoDK_FIND_COMPONENT(profile_ds402_core_types profile_ds402_parser.h 1)
  263. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  264. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  265. endif()
  266. endif()
  267. if(MoDK_component STREQUAL "profile_ds402_core")
  268. _MoDK_FIND_COMPONENT(profile_ds402_core profile_ds402.h 0)
  269. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  270. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  271. endif()
  272. endif()
  273. if(MoDK_component STREQUAL "service_ecatmkpa15_core_types")
  274. _MoDK_FIND_COMPONENT(service_ecatmkpa15_core_types ecatmkpa15_parser.h 1)
  275. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT (MoDK_${MoDK_component}_INCLUDE_DIR)))
  276. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  277. endif()
  278. endif()
  279. if(MoDK_component STREQUAL "service_ecatmkpa15_core")
  280. _MoDK_FIND_COMPONENT(service_ecatmkpa15_core ecatmkpa15_service.h 0)
  281. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  282. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  283. endif()
  284. endif()
  285. if(MoDK_component STREQUAL "service_ecatmkpa15_proxy_client")
  286. _MoDK_FIND_COMPONENT(service_ecatmkpa15_proxy_client pc_read_pi.h 0)
  287. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  288. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  289. endif()
  290. endif()
  291. if(MoDK_component STREQUAL "service_ecatmkpa15_proxy_server")
  292. _MoDK_FIND_COMPONENT(service_ecatmkpa15_proxy_server ps_read_pi.h 0)
  293. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  294. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  295. endif()
  296. endif()
  297. if(MoDK_component STREQUAL "service_ecatmkpa15_proxy_types")
  298. _MoDK_FIND_COMPONENT(service_ecatmkpa15_proxy_types proxy_read_pi.h 1)
  299. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  300. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  301. endif()
  302. endif()
  303. if(MoDK_component STREQUAL "profile_simulation_types")
  304. _MoDK_FIND_COMPONENT(profile_simulation_types profile_simulation_result.h 1)
  305. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  306. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  307. endif()
  308. endif()
  309. if(profile_simulation_core)
  310. _MoDK_FIND_COMPONENT(profile_simulation_core profile_simulation.h 0)
  311. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  312. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  313. endif()
  314. endif()
  315. if(MoDK_component STREQUAL "profile_vrep_types")
  316. _MoDK_FIND_COMPONENT(profile_vrep_types vrep_parser.h 1)
  317. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  318. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  319. endif()
  320. endif()
  321. if(MoDK_component STREQUAL "sprofile_vrep_core")
  322. _MoDK_FIND_COMPONENT(profile_vrep_core profile_vrep.h 0)
  323. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  324. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  325. endif()
  326. endif()
  327. if(MoDK_component STREQUAL "profile_vrep_client")
  328. _MoDK_FIND_COMPONENT(profile_vrep_client pc_configuration_vrep.h 0)
  329. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  330. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  331. endif()
  332. endif()
  333. if(MoDK_component STREQUAL "busal")
  334. _MoDK_FIND_COMPONENT(busal service.h 1)
  335. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  336. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  337. endif()
  338. endif()
  339. if(MoDK_component STREQUAL "cycle_proc")
  340. _MoDK_FIND_COMPONENT(cycle_proc cycle_proc.h 0)
  341. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  342. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  343. endif()
  344. endif()
  345. if(MoDK_component STREQUAL "client_proxy")
  346. _MoDK_FIND_COMPONENT(client_proxy pc.h 0)
  347. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  348. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  349. endif()
  350. endif()
  351. if(MoDK_component STREQUAL "server_proxy")
  352. _MoDK_FIND_COMPONENT(server_proxy ps.h 0)
  353. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  354. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  355. endif()
  356. endif()
  357. if(MoDK_component STREQUAL "proxy_core")
  358. _MoDK_FIND_COMPONENT(proxy_core proxy_fb_interface.h 0)
  359. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  360. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  361. endif()
  362. endif()
  363. if(MoDK_component STREQUAL "ref_registry")
  364. _MoDK_FIND_COMPONENT(ref_registry ref_registry.h 0)
  365. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  366. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  367. endif()
  368. endif()
  369. if(MoDK_component STREQUAL "osal")
  370. _MoDK_FIND_COMPONENT(osal osal_thread.h 0)
  371. if(MoDK_FIND_REQUIRED_${MoDK_component} AND (NOT MoDK_FOUND))
  372. message(FATAL_ERROR "MoDK ${MoDK_component} not available.")
  373. endif()
  374. endif()
  375. endforeach()
  376. endif()
  377.  
  378. if(MSVC)
  379. if(MSVC_VERSION EQUAL 1800)
  380. set(MoDK_LIBRARIES ${MoDK_LIBRARIES} SetupAPI WS2_32 Crypt32)
  381. else()
  382. message(WARNING "You are using not compatible MSVC version")
  383. endif()
  384. elseif(CMAKE_SYSTEM_NAME STREQUAL QNX)
  385. if(CMAKE_SYSTEM_VERSION EQUAL 6.5.0)
  386. set(MoDK_LIBRARIES ${MoDK_LIBRARIES} m socket c crypto usbdi cpp)
  387. else()
  388. set(MoDK_LIBRARIES ${MoDK_LIBRARIES} m socket c crypto usbdi stdc++)
  389. endif()
  390. elseif(CMAKE_SYSTEM_NAME STREQUAL Xenomai)
  391. if(CMAKE_SYSTEM_VERSION EQUAL 2.6.4)
  392. set(MoDK_LIBRARIES ${MoDK_LIBRARIES} pthread_rt xenomai rtdm native m stdc++)
  393. elseif(CMAKE_SYSTEM_VERSION EQUAL 3.0.1 OR CMAKE_SYSTEM_VERSION EQUAL 3.0.4)
  394. set(MoDK_LIBRARIES ${MoDK_LIBRARIES} cobalt pthread rt m stdc++)
  395. endif()
  396. elseif(CMAKE_SYSTEM_NAME STREQUAL Linux)
  397. set(MoDK_LIBRARIES ${MoDK_LIBRARIES} rt pthread c m dl stdc++)
  398. endif()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement