Skip to content

Commit 80c310b

Browse files
committed
Move module sources to OS's dirs
1 parent f8c2904 commit 80c310b

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,18 @@ set(INCLUDE_DIRS
5252
${INCLUDE_DIR}
5353
)
5454

55-
if(LINUX)
56-
list(APPEND SOURCE_FILES ${SOURCE_DIR}/module_linux.cpp)
57-
elseif(WINDOWS)
58-
list(APPEND SOURCE_FILES ${SOURCE_DIR}/module_windows.cpp)
55+
if(WINDOWS)
56+
list(APPEND SOURCE_FILES
57+
${SOURCE_DIR}/windows/module.cpp
58+
)
59+
elseif(LINUX)
60+
list(APPEND SOURCE_FILES
61+
${SOURCE_DIR}/linux/module.cpp
62+
)
5963
elseif(MACOS)
60-
list(APPEND SOURCE_FILES ${SOURCE_DIR}/module_apple.cpp)
64+
list(APPEND SOURCE_FILES
65+
${SOURCE_DIR}/apple/module.cpp
66+
)
6167
else()
6268
message(FATAL_ERROR "Unsupported platform")
6369
endif()

0 commit comments

Comments
 (0)