Skip to content

Commit 7a609f5

Browse files
committed
first commit
0 parents  commit 7a609f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+22848
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
a.out
2+
libjvtklib_64.a
3+
round-test.cpp
4+
test.vtk
5+
vtk_test.cpp

.vscode/settings.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"files.associations": {
3+
"thread": "cpp",
4+
"array": "cpp",
5+
"atomic": "cpp",
6+
"*.tcc": "cpp",
7+
"cctype": "cpp",
8+
"chrono": "cpp",
9+
"clocale": "cpp",
10+
"cmath": "cpp",
11+
"cstdarg": "cpp",
12+
"cstddef": "cpp",
13+
"cstdint": "cpp",
14+
"cstdio": "cpp",
15+
"cstdlib": "cpp",
16+
"cstring": "cpp",
17+
"ctime": "cpp",
18+
"cwchar": "cpp",
19+
"cwctype": "cpp",
20+
"deque": "cpp",
21+
"unordered_map": "cpp",
22+
"vector": "cpp",
23+
"exception": "cpp",
24+
"algorithm": "cpp",
25+
"functional": "cpp",
26+
"iterator": "cpp",
27+
"map": "cpp",
28+
"memory": "cpp",
29+
"memory_resource": "cpp",
30+
"numeric": "cpp",
31+
"optional": "cpp",
32+
"random": "cpp",
33+
"ratio": "cpp",
34+
"string": "cpp",
35+
"string_view": "cpp",
36+
"system_error": "cpp",
37+
"tuple": "cpp",
38+
"type_traits": "cpp",
39+
"utility": "cpp",
40+
"fstream": "cpp",
41+
"initializer_list": "cpp",
42+
"iosfwd": "cpp",
43+
"iostream": "cpp",
44+
"istream": "cpp",
45+
"limits": "cpp",
46+
"new": "cpp",
47+
"ostream": "cpp",
48+
"sstream": "cpp",
49+
"stdexcept": "cpp",
50+
"streambuf": "cpp",
51+
"cinttypes": "cpp",
52+
"typeinfo": "cpp",
53+
"bit": "cpp"
54+
}
55+
}

CMakeLists.txt

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
cmake_minimum_required(VERSION 2.8)
2+
3+
PROJECT(To_VTK4)
4+
5+
# CPU Objects
6+
7+
set(OBJXML JXml.cpp tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp)
8+
set(OBCOMMON Functions.cpp FunctionsGeo3d.cpp JBinaryData.cpp JDataArrays.cpp JException.cpp JObject.cpp JOutputCsv.cpp JPartDataBi4.cpp JPartDataHead.cpp JRangeFilter.cpp JSpaceCtes.cpp JSpaceEParms.cpp JSpaceParts.cpp)
9+
set(OBCODE JCfgRun.cpp main.cpp)
10+
11+
# Static libraries linker path
12+
13+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
14+
message("Using libraries for gcc")
15+
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../lib/linux_gcc)
16+
elseif(MSVC)
17+
message("Windows version")
18+
19+
if(MSVC_VERSION VERSION_EQUAL 1800)
20+
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../lib/vs2013)
21+
elseif(MSVC_VERSION VERSION_EQUAL 1900)
22+
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../lib/vs2015)
23+
endif()
24+
endif()
25+
26+
# Don't use C++11 ABI for compatibility between GCC v4.9 and >=5
27+
28+
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
29+
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
30+
31+
# Binaries
32+
33+
add_executable(ToVTK4_linux64 ${OBJXML} ${OBCOMMON} ${OBCODE})
34+
install(TARGETS ToVTK4_linux64 DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../bin)
35+
36+
# Linker flags
37+
38+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
39+
target_link_libraries(ToVTK4_linux64 jvtklib_64)
40+
set_target_properties(ToVTK4_linux64 PROPERTIES COMPILE_FLAGS "-use_fast_math -O3 -D_GLIBCXX_USE_CXX11_ABI=0")
41+
42+
elseif(MSVC)
43+
if(MSVC_VERSION VERSION_EQUAL 1800)
44+
# MSVC 2013
45+
target_link_libraries(ToVTK4_linux64 LibJVtkLib_x64_v120_Release)
46+
elseif(MSVC_VERSION VERSION_EQUAL 1900)
47+
# MSVC 2015
48+
target_link_libraries(ToVTK4_linux64 LibJVtkLib_x64_v140_Release)
49+
endif()
50+
51+
SET(CUDA_PROPAGATE_HOST_FLAGS OFF CACHE BOOL "Propagate C/CXX Flags and friends to the host compiler in NVCC via -Xompile " FORCE)
52+
53+
foreach(CPP_FLAGS CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
54+
if(${CPP_FLAGS} MATCHES "/MD")
55+
string(REGEX REPLACE "/MD" "/MT" ${CPP_FLAGS} "${${CPP_FLAGS}}")
56+
endif(${CPP_FLAGS} MATCHES "/MD")
57+
endforeach(CPP_FLAGS)
58+
endif()
59+

0 commit comments

Comments
 (0)