#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- ############################################################ # Nonin plugin CMakeList ############################################################ PROJECT(serialio) # define header and source files for the library set (SERIAL_IO_HEADER_FILES include/AsyncSerial.h include/BufferedAsyncSerial.h include/plugin.h ) if (Scol_STATIC) set (SERIAL_IO_HEADER_FILES ${SERIAL_IO_HEADER_FILES} include/loadScolSerialIO.h) endif() set (SERIAL_IO_SOURCE_FILES src/AsyncSerial.cpp src/BufferedAsyncSerial.cpp src/plugin.cpp ) scol_include_plugin("SERIALIO" "${PROJECT_SOURCE_DIR}/include" "loadScolSerialIO.h") # Add directories includes include_directories(include) # Add definition for P4 optimizations, warnings removal. add_definitions(-D_CRT_SECURE_NO_WARNINGS) # link boost asio. set(SERIAL_LIBRARIES ${Boost_LIBRARIES}) # setup Scol serialio plugin target add_library(serialio ${Scol_LIB_TYPE} ${SERIAL_IO_HEADER_FILES} ${SERIAL_IO_SOURCE_FILES} ) add_dependencies(serialio kernel) if (ANDROID) set(Scol_ANDROID_DEPENDENCIES ${Scol_ANDROID_DEPENDENCIES} serialio CACHE INTERNAL "" FORCE) message(STATUS "[${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE}] Scol_ANDROID_DEPENDENCIES: ${Scol_ANDROID_DEPENDENCIES} -- added serialio to android project deps") endif() # set the dll version. #set_target_properties(serialio PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR}) target_link_libraries(serialio ${SERIAL_LIBRARIES}) # install Scol serialio scol_config_plugin(serialio) #install(FILES ${SERIAL_IO_HEADER_FILES} DESTINATION include/SCOL/plugins/serialio)