#*************************************************************************** # @file CMakeLists.txt # @author itas109 (itas109@qq.com) \n\n # Blog : https://blog.csdn.net/itas109 \n # Github : https://github.com/itas109 \n # Gitee : https://gitee.com/itas109 \n # QQ Group : 129518033 # @brief Lightweight cross-platform serial port library based on C++ # @copyright The CSerialPort is Copyright (C) 2014 itas109 . # You may use, copy, modify, and distribute the CSerialPort, under the terms # of the LICENSE file. ############################################################################ cmake_minimum_required(VERSION 3.10.0) # include source files if CSerialPortSourceFiles is empty if(NOT CSerialPortSourceFiles) include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/cserialport_src.cmake) endif() # CommNoGui add_subdirectory(CommNoGui) # CommNoGuiProtocol if (NOT CSERIALPORT_ENABLE_NATIVE_SYNC) add_subdirectory(CommNoGuiProtocol) if(WIN32) find_package(MFC) if (MFC_FOUND) add_subdirectory(CommMFC) endif() endif() endif ()