# Note: If this tag is empty the current directory is searched.
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/api/ \
+ @CMAKE_CURRENT_SOURCE_DIR@/api/maa/ \
@CMAKE_CURRENT_SOURCE_DIR@/README.md \
@CMAKE_CURRENT_SOURCE_DIR@/docs/
--- /dev/null
+/*
+ * Author: Brendan Le Foll <brendan.le.foll@intel.com>
+ * Copyright (c) 2014 Intel Corporation.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#pragma once
+
+#include "maa.h"
+#include "maa/pwm.hpp"
+#include "maa/aio.hpp"
+#include "maa/gpio.hpp"
+#include "maa/i2c.hpp"
+#include "maa/spi.hpp"
include_directories(
${PROJECT_SOURCE_DIR}/api
+ ${PROJECT_SOURCE_DIR}/api/maa
${PROJECT_SOURCE_DIR}/include
)
${CMAKE_CURRENT_BINARY_DIR}/version.c
)
+set (maa_LIB_GLOB_HEADERS
+ ${PROJECT_SOURCE_DIR}/api/maa.h
+ ${PROJECT_SOURCE_DIR}/api/maa.hpp
+)
+
add_library (maa SHARED ${maa_LIB_SRCS})
target_link_libraries (maa ${CMAKE_THREAD_LIBS_INIT})
SOVERSION ${maa_VERSION_MAJOR}
VERSION ${maa_VERSION_STRING}
)
-install (DIRECTORY ${PROJECT_SOURCE_DIR}/api/ DESTINATION include/maa)
+install (FILES ${maa_LIB_GLOB_HEADERS} DESTINATION include/)
+install (DIRECTORY ${PROJECT_SOURCE_DIR}/api/maa DESTINATION include/maa)
macro (maa_CREATE_INSTALL_PKGCONFIG generated_file install_location)
configure_file (${generated_file}.cmake ${CMAKE_CURRENT_BINARY_DIR}/${generated_file} @ONLY)