Browse Source

update for personal builds

richarddobson 3 years ago
parent
commit
0f15dfa769
1 changed files with 16 additions and 0 deletions
  1. 16 0
      dev/pvxio2/CMakeLists.txt

+ 16 - 0
dev/pvxio2/CMakeLists.txt

@@ -0,0 +1,16 @@
+if(APPLE)
+  set(CMAKE_C_FLAGS "-O -Wall -Dunix")
+else()
+  if(MINGW)
+    set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32 -D_WIN32")
+  else()
+    set(CMAKE_C_FLAGS "-O2 -Wall -DCDP97 -Dunix -Dlinux -D_X86_")
+  endif()
+endif()
+
+include_directories(../newinclude)
+
+set(PVXIO2_SRC pvfileio.c)
+
+add_library(pvxio2 ${PVXIO2_SRC})
+