This repository has been archived on 2024-06-12. You can view files and clone it, but cannot push or open issues or pull requests.
MPortLink/CMakeLists.txt

16 lines
395 B
CMake
Raw Normal View History

2023-12-20 21:18:00 +00:00
cmake_minimum_required(VERSION 3.18.4)
project(mportlink)
file(GLOB_RECURSE SRC_FILES_LIST src/*.c)
find_package(PkgConfig REQUIRED)
pkg_search_module(MM REQUIRED mm-glib)
include_directories(${MM_INCLUDE_DIRS})
link_directories(${MM_LIBRARY_DIRS})
add_definitions(${MM_CFLAGS_OTHER})
add_executable(${PROJECT_NAME} ${SRC_FILES_LIST})
target_link_libraries(${PROJECT_NAME} ${MM_LIBRARIES})