@@ -66,19 +66,33 @@ FetchContent_MakeAvailable(googletest)
6666enable_testing ()
6767include (GoogleTest)
6868
69- # Include the source files
70- file (GLOB_RECURSE SOURCES
71- ${CMAKE_CURRENT_SOURCE_DIR} /src/*.cpp
72- ${CMAKE_CURRENT_SOURCE_DIR} /src/parser /*.cpp
73- ${CMAKE_CURRENT_SOURCE_DIR} /src/parser/node /*.cpp
74- )
69+ if ( MSVC )
70+ # Include the source files
71+ file (GLOB_RECURSE SOURCES
72+ ${CMAKE_CURRENT_SOURCE_DIR} /src/*.cpp
73+ ${CMAKE_CURRENT_SOURCE_DIR} /src/parser/*.cpp
74+ )
7575
76- # Include the header files
77- file (GLOB_RECURSE HEADERS
78- ${CMAKE_CURRENT_SOURCE_DIR} /include /*.hpp
79- ${CMAKE_CURRENT_SOURCE_DIR} /include /parser/*.hpp
80- ${CMAKE_CURRENT_SOURCE_DIR} /include /parser/node/*.hpp
81- )
76+ # Include the header files
77+ file (GLOB_RECURSE HEADERS
78+ ${CMAKE_CURRENT_SOURCE_DIR} /include /*.hpp
79+ ${CMAKE_CURRENT_SOURCE_DIR} /include /parser/*.hpp
80+ )
81+ else ()
82+ # Include the source files
83+ file (GLOB_RECURSE SOURCES
84+ ${CMAKE_CURRENT_SOURCE_DIR} /src/*.cpp
85+ ${CMAKE_CURRENT_SOURCE_DIR} /src/parser/*.cpp
86+ ${CMAKE_CURRENT_SOURCE_DIR} /src/parser/node/*.cpp
87+ )
88+
89+ # Include the header files
90+ file (GLOB_RECURSE HEADERS
91+ ${CMAKE_CURRENT_SOURCE_DIR} /include /*.hpp
92+ ${CMAKE_CURRENT_SOURCE_DIR} /include /parser/*.hpp
93+ ${CMAKE_CURRENT_SOURCE_DIR} /include /parser/node/*.hpp
94+ )
95+ endif ()
8296
8397# Include the Lexer
8498if (MSVC )
0 commit comments