# SimpleMessageKeeper (C) 2017 Stephane Charette <stephanecharette@gmail.com>
# $Id: CMakeLists.txt 2113 2017-01-18 10:02:15Z stephane $

# Get a sorted list of our own source files
FILE ( GLOB SMK_SOURCE *.cpp )
LIST ( SORT SMK_SOURCE )

ADD_EXECUTABLE			( smk ${SMK_SOURCE}				)
TARGET_LINK_LIBRARIES	( smk ${CMAKE_THREAD_LIBS_INIT}	)

INSTALL ( FILES		smk.cron				DESTINATION /etc/cron.d/	RENAME smk	)
INSTALL ( PROGRAMS	smk_checks.sh			DESTINATION bin							)
INSTALL ( TARGETS	smk				RUNTIME	DESTINATION bin							)
