5 #----------------------- file groups ------------------------------
7 file (GLOB exe_srcs "list_smargo.c")
8 file (GLOB exe_hdrs "*.h")
9 file (GLOB all_srcs ${exe_srcs})
11 #----------------------- the executable ------------------------------
13 set (util_name "list_smargo")
14 add_executable (${util_name} ${exe_srcs} ${exe_hdrs})
15 target_link_libraries (${util_name} ${libusb_link} ${rt_link} ${setupapi_link} ${ole32_link} ${shell32_link} ${pthread_link} ${dl_link})
16 #----------------------- printout resume -----------------------------
18 message (STATUS "Utils: operating system: ${OSCamOperatingSystem}")
19 message (STATUS "Utils: target system: ${CS_TARGET}")
20 if(STATIC_LIBUSB EQUAL 0)
21 message (STATUS "Utils: You selected to disable static libusb system libusb used")
22 endif(STATIC_LIBUSB EQUAL 0)
23 if(STATICLIBUSB AND NOT LIBUSBDIR)
24 message (STATUS " utils use static libusb functions")
25 else(STATICLIBUSB AND NOT LIBUSBDIR)
26 if (LIBUSBDIR AND STATIC_LIBUSB EQUAL 0)
27 message(STATUS " utils use system libusb from selected LIBUSBDIR functions")
28 elseif (LIBUSBDIR AND STATIC_LIBUSB EQUAL 1)
29 message(STATUS " utils use static libusb from selected LIBUSBDIR functions")
30 elseif(LIBUSBDIR AND NOT STATIC_LIBUSB)
31 message(STATUS " utils use system libusb from selected LIBUSBDIR functions")
32 elseif(NOT LIBUSBDIR AND NOT STATIC_LIBUSB)
33 message(STATUS " utils use system libusb functions")
34 endif(LIBUSBDIR AND STATIC_LIBUSB EQUAL 0)
35 endif(STATICLIBUSB AND NOT LIBUSBDIR)