From b2a7b91a7ca2d1357f4106d6a1abf00cb6f75ce2 Mon Sep 17 00:00:00 2001 From: Federico Hernandez Date: Wed, 29 Dec 2010 01:14:04 +0100 Subject: [PATCH] Cmake: - added parts of the configure.ac checks to src/CMakeList.txt as comments/TODOs --- src/CMakeLists.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f5fa134a1..67c7cf1df 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,6 +4,34 @@ include_directories (${CMAKE_SOURCE_DIR}/src) find_package (Lua51) include (${LUA_INCLUDE_DIR}) +#AC_DEFINE([SOLARIS], [], [Compiling on Solaris]) +#AC_DEFINE([DARWIN], [], [Compiling on Darwin]) +#AC_DEFINE([CYGWIN], [], [Compiling on Cygwin]) +#AC_DEFINE([OPENBSD], [], [Compiling on OpenBSD]) +#AC_DEFINE([HAIKU], [], [Compiling on Haiku]) +#AC_DEFINE([FREEBSD], [], [Compiling on FreeBSD]) +#AC_DEFINE([LINUX], [], [Compiling on Linux]) +#AC_DEFINE([UNKNOWN], [], [Compiling on Unknown]) +#AC_DEFINE([HAVE_LIBLUA], [1], [Defined if you have liblua]) +#AC_CONFIG_SRCDIR([src/main.cpp]) +#AC_CONFIG_HEADER([auto.h]) +#AC_CHECK_LIB(pthread,pthread_create) +#AC_HEADER_STDC +#AC_CHECK_HEADERS([stdlib.h sys/file.h sys/stat.h sys/time.h unistd.h]) +#AC_CHECK_HEADERS([sstream string vector map]) +#AC_HEADER_STDBOOL +#AC_C_CONST +#AC_TYPE_PID_T +#AC_TYPE_SIZE_T +#AC_HEADER_TIME +#AC_STRUCT_TM +#AC_FUNC_MKTIME +#AC_FUNC_SELECT_ARGTYPES +#AC_CHECK_FUNCS([select]) +#AC_CHECK_FUNC(uuid_unparse_lower, [AC_DEFINE([HAVE_UUID], [1], [Found uuid_unparse_lower])]) +#AC_CHECK_FUNC(random, [AC_DEFINE([HAVE_RANDOM], [1], [Found random])]) +#AC_CHECK_FUNC(srandom, [AC_DEFINE([HAVE_SRANDOM], [1], [Found srandom])]) + set (task_SRCS API.cpp API.h Att.cpp Att.h Cmd.cpp Cmd.h Color.cpp Color.h Config.cpp Config.h Context.cpp Context.h Date.cpp Date.h Directory.cpp Directory.h Duration.cpp Duration.h File.cpp