]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
List the header files in cmake
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 5 Mar 2015 14:28:12 +0000 (15:28 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 5 Mar 2015 14:28:12 +0000 (15:28 +0100)
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.

CMakeLists.txt

index 6e35816e916d78be0e9ad3ecfb03d8d439c6dd98..c3b3f3345efd24762ed9e9653d7af910ddb1aff6 100755 (executable)
@@ -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)