]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Config.h.in
Windows compilation 3/3
[cpPlugins.git] / lib / cpExtensions / Config.h.in
index 075c7eb650c3e83d2934be6586b0d0d63770bb08..23c93da087c923e6983ecf934fecf3f27dd8dcff 100644 (file)
@@ -8,20 +8,31 @@
  * Identify OS
  * =========================================================================
  */
-#define @prj_NAME_OS@
-#define cpExtensions_LIB_PREFIX     "@prj_NAME_LIB_PREFIX@"
-#define cpExtensions_LIB_EXT        "@prj_NAME_LIB_EXT@"
-#define cpExtensions_ENV_SEPARATOR  "@prj_NAME_ENV_SEPARATOR@"
-#define cpExtensions_PATH_SEPARATOR '@prj_NAME_PATH_SEPARATOR@'
+#define cpExtensions_OS_@CMAKE_SYSTEM_NAME@
+#ifdef cpExtensions_OS_Windows
+#  define cpExtensions_LIB_PREFIX     ""
+#  define cpExtensions_ENV_SEPARATOR  ";"
+#  define cpExtensions_PATH_SEPARATOR '\\'
+#  define cpExtensions_LIB_EXT        ".dll"
+#else // cpExtensions_OS_Windows
+#  define cpExtensions_LIB_PREFIX     "lib"
+#  define cpExtensions_ENV_SEPARATOR  ":"
+#  define cpExtensions_PATH_SEPARATOR '/'
+#  ifdef cpExtensions_OS_Linux
+#    define cpExtensions_LIB_EXT ".so"
+#  else // cpExtensions_OS_Linux
+#    define cpExtensions_LIB_EXT ".dylib"
+#  endif // cpExtensions_OS_Linux
+#endif // cpExtensions_OS_Windows
 
-#ifdef cpPlugins_OS_Windows
+#ifdef cpExtensions_OS_Windows
 #  ifndef WIN32_LEAN_AND_MEAN
 #    define WIN32_LEAN_AND_MEAN
-#  endif
+#  endif // WIN32_LEAN_AND_MEAN
 #  define NOMINMAX
 #  include <windows.h>
 #  include <tchar.h>
-#endif
+#endif // cpExtensions_OS_Windows
 
 /*
  * =========================================================================