cmake_minimum_required(VERSION 3.0) project(touchpad_disabler) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeModules) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(SOURCE_FILES main.cpp) add_executable(touchpad_disabler ${SOURCE_FILES}) find_package(LibUSB REQUIRED) include_directories (${LIBUSB_INCLUDE_DIRS}) SET(CMAKE_CXX_FLAGS "-lusb-1.0") install (TARGETS touchpad_disabler DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)