Browse Source

Support more source file extensions.

Added support for: .mm (Objective-C++ source code) and .s (preprocessed assembly source code).
weitjong 12 years ago
parent
commit
1cdd74f3da
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Engine/CMakeLists.txt

+ 2 - 2
Source/Engine/CMakeLists.txt

@@ -75,9 +75,9 @@ foreach (TARGET ${STATIC_LIBRARY_TARGETS})
     
     foreach (SOURCE ${SOURCES})
         get_filename_component (NAME ${SOURCE} NAME)
-        if (NAME MATCHES \\.c.*$|\\.m$|\\.S$)
+        if (NAME MATCHES \\.c.*$|\\.mm?$|\\.S$|\\.s$)
             if (MSVC OR XCODE)
-                string (REGEX REPLACE \\.c.*$|\\.m$|\\.S$ "" NAME ${NAME}) 
+                string (REGEX REPLACE \\.c.*$|\\.mm?$|\\.S$|\\.s$ "" NAME ${NAME}) 
             endif ()
             set (SYS_DIR "")
             if (NOT MSVC AND NOT XCODE)