include (CheckFunctionExists) include (CheckLibraryExists) include (CheckIncludeFiles) check_library_exists (${MRAA_LIBRARIES} mraa_firmata_init "" HAVE_FIRMATA) if (HAVE_FIRMATA) set (libname "curieimu") set (libdescription "Curie IMU via Firmata") set (module_src ${libname}.cpp) set (module_hpp ${libname}.hpp) upm_module_init () endif ()