summaryrefslogtreecommitdiff
path: root/cmake/sources.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/sources.cmake')
-rw-r--r--cmake/sources.cmake18
1 files changed, 17 insertions, 1 deletions
diff --git a/cmake/sources.cmake b/cmake/sources.cmake
index 1be2264..040c81b 100644
--- a/cmake/sources.cmake
+++ b/cmake/sources.cmake
@@ -168,6 +168,11 @@ SET(sword_base_utilfns_SOURCES
)
SOURCE_GROUP("src\\utilfns" FILES ${sword_base_utilfns_SOURCES})
+SET(sword_base_msvc_SOURCES
+ src/utilfuns/win32/dirent.cpp
+)
+SOURCE_GROUP("src\\utilfns\\win32" FILES ${sword_base_msvc_SOURCES})
+
SET(sword_base_binding_SOURCES
bindings/flatapi.cpp
)
@@ -179,9 +184,20 @@ SET(sword_base_SOURCES
${sword_base_mgr_SOURCES}
${sword_base_module_SOURCES}
${sword_base_utilfns_SOURCES}
- ${sword_base_binding_SOURCES}
)
+IF(NOT MSVC)
+ SET(sword_base_SOURCES
+ ${sword_base_SOURCES}
+ ${sword_base_binding_SOURCES}
+ )
+ELSE(NOT MSVC)
+ SET(sword_base_SOURCES
+ ${sword_base_SOURCES}
+ ${sword_base_msvc_SOURCES}
+ )
+ENDIF(NOT MSVC)
+
# Sources relying on ZLib
SET(sword_zlib_used_SOURCES
src/modules/common/zipcomprs.cpp