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