cmake_minimum_required(VERSION 3.5) set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED true) project(memonitor-log LANGUAGES C) add_library(memonitor-log STATIC "include/log.h" "src/log.c") target_include_directories(memonitor-log PUBLIC "include") install(TARGETS memonitor-log LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )