foxygit / doom Log in
commit 01991be296d303bf4c37903c3ce05fa9394c7690
Author:     David Carlier <devnexen@gmail.com>
AuthorDate: Mon Oct 29 20:21:21 2018 +0000
Commit:     David Carlier <devnexen@gmail.com>
CommitDate: Mon Oct 29 20:21:21 2018 +0000

    cmake build fix

    undefined references due to missing bits.
---
 CMakeLists.txt     | 2 ++
 cmake/config.h.cin | 1 +
 src/CMakeLists.txt | 2 ++
 3 files changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58c200b6..1f5b7a7a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,8 +47,10 @@ endif()
 find_package(m)

 include(CheckSymbolExists)
+include(CheckIncludeFile)
 check_symbol_exists(strcasecmp "strings.h" HAVE_DECL_STRCASECMP)
 check_symbol_exists(strncasecmp "strings.h" HAVE_DECL_STRNCASECMP)
+check_include_file("dirent.h" HAVE_DIRENT_H)

 string(CONCAT WINDOWS_RC_VERSION "${PROJECT_VERSION_MAJOR}, "
     "${PROJECT_VERSION_MINOR}, ${PROJECT_VERSION_PATCH}, 0")
diff --git a/cmake/config.h.cin b/cmake/config.h.cin
index 4a67927e..818317dd 100644
--- a/cmake/config.h.cin
+++ b/cmake/config.h.cin
@@ -6,5 +6,6 @@

 #cmakedefine HAVE_LIBSAMPLERATE
 #cmakedefine HAVE_LIBPNG
+#cmakedefine HAVE_DIRENT_H
 #cmakedefine01 HAVE_DECL_STRCASECMP
 #cmakedefine01 HAVE_DECL_STRNCASECMP
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a6e6789b..261683cc 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -46,10 +46,12 @@ set(GAME_SOURCE_FILES
     gusconf.c           gusconf.h
     i_cdmus.c           i_cdmus.h
     i_endoom.c          i_endoom.h
+    i_glob.c            i_glob.h
     i_input.c           i_input.h
     i_joystick.c        i_joystick.h
                         i_swap.h
     i_midipipe.c        i_midipipe.h
+    i_musicpack.c
     i_oplmusic.c
     i_pcsound.c
     i_sdlmusic.c