cmake_minimum_required(VERSION 2.8.0) project(toontown-stay-awake) file(GLOB SOURCES *.cpp) find_library(XDO_LIB xdo) if(NOT XDO_LIB) message(FATAL_ERROR "libxdo not found") endif() add_definitions(-std=c++11) # add_definitions(-pthread) # set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") add_executable(toontown-stay-awake ${SOURCES}) target_link_libraries(toontown-stay-awake "${XDO_LIB}")