From: Frederic Marchal Date: Thu, 5 Mar 2015 14:28:12 +0000 (+0100) Subject: List the header files in cmake X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eca571a0069894d411abcb1176f4b30e1e015c60;p=thirdparty%2Fsarg.git List the header files in cmake QtCreator needs the header files to be listed in the source variable to display them in its project tree when the cmake project is imported. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e35816..c3b3f33 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,8 @@ SET(SRC util.c log.c report.c topuser.c email.c sort.c html.c dansguardian_log.c dansguardian_report.c realtime.c btree_cache.c usertab.c userinfo.c longline.c url.c fnmatch.c stringbuffer.c filelist.c readlog.c alias.c - readlog_squid.c readlog_sarg.c readlog_extlog.c readlog_common.c) + readlog_squid.c readlog_sarg.c readlog_extlog.c readlog_common.c + include/conf.h include/info.h include/defs.h) FOREACH(f ${SRC}) ADD_FILE_DEPENDENCIES(${f} ${CMAKE_BINARY_DIR}/config.h ${CMAKE_SOURCE_DIR}/include/conf.h ${CMAKE_SOURCE_DIR}/include/info.h ${CMAKE_SOURCE_DIR}/include/defs.h)