We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c792f32 commit e7f949bCopy full SHA for e7f949b
Libs/Utils/CMakeLists.txt
@@ -3,12 +3,14 @@ set(Utils_sources
3
Utils.cpp
4
StringUtils.cpp
5
EigenUtils.cpp
6
+ PlatformUtils.cpp
7
)
8
9
set(Utils_headers
10
Utils.h
11
StringUtils.h
12
EigenUtils.h
13
+ PlatformUtils.h
14
15
16
add_library(Utils STATIC
Libs/Utils/PlatformUtils.cpp
Libs/Utils/PlatformUtils.h
@@ -0,0 +1,29 @@
1
+
2
+namespace shapeworks {
+//! Platform utility functions
+class PlatformUtils {
+ public:
+ static bool is_windows() {
+#ifdef _WIN32
+ return true;
+#endif
+ return false;
+ }
+ static bool is_linux() {
+#ifdef __linux__
17
18
19
20
21
+ static bool is_macos() {
22
+#ifdef __APPLE__
23
24
25
26
27
+};
28
29
+} // namespace shapeworks
0 commit comments