Skip to content

Commit c466f65

Browse files
authored
Make compilable on Ubuntu 🚀 (#12)
* Make compilable on Ubuntu 🚀 * update README
1 parent 348f79a commit c466f65

File tree

445 files changed

+55708
-28706
lines changed

Some content is hidden

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

445 files changed

+55708
-28706
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,5 @@ __pycache__/
297297
*.btm.cs
298298
*.odx.cs
299299
*.xsd.cs
300+
301+
build/**/*

.vscode/c_cpp_properties.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Linux",
5+
"includePath": [
6+
"${workspaceFolder}/**",
7+
"${workspaceFolder}/MP-APS/3rdParty/glm/",
8+
"${workspaceFolder}/MP-APS/3rdParty/glad/include/",
9+
"${workspaceFolder}/MP-APS/3rdParty/pugixml/include/"
10+
],
11+
"defines": [],
12+
"compilerPath": "/usr/bin/g++-10",
13+
"cStandard": "gnu17",
14+
"cppStandard": "c++17",
15+
"intelliSenseMode": "linux-gcc-x64"
16+
}
17+
],
18+
"version": 4
19+
}

.vscode/settings.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"files.associations": {
3+
"string_view": "cpp",
4+
"array": "cpp",
5+
"atomic": "cpp",
6+
"bit": "cpp",
7+
"*.tcc": "cpp",
8+
"cctype": "cpp",
9+
"chrono": "cpp",
10+
"clocale": "cpp",
11+
"cmath": "cpp",
12+
"codecvt": "cpp",
13+
"compare": "cpp",
14+
"concepts": "cpp",
15+
"cstdarg": "cpp",
16+
"cstddef": "cpp",
17+
"cstdint": "cpp",
18+
"cstdio": "cpp",
19+
"cstdlib": "cpp",
20+
"cstring": "cpp",
21+
"ctime": "cpp",
22+
"cwchar": "cpp",
23+
"cwctype": "cpp",
24+
"deque": "cpp",
25+
"list": "cpp",
26+
"map": "cpp",
27+
"set": "cpp",
28+
"unordered_map": "cpp",
29+
"vector": "cpp",
30+
"exception": "cpp",
31+
"algorithm": "cpp",
32+
"functional": "cpp",
33+
"iterator": "cpp",
34+
"memory": "cpp",
35+
"memory_resource": "cpp",
36+
"numeric": "cpp",
37+
"optional": "cpp",
38+
"random": "cpp",
39+
"ratio": "cpp",
40+
"string": "cpp",
41+
"system_error": "cpp",
42+
"tuple": "cpp",
43+
"type_traits": "cpp",
44+
"utility": "cpp",
45+
"fstream": "cpp",
46+
"initializer_list": "cpp",
47+
"iomanip": "cpp",
48+
"iosfwd": "cpp",
49+
"iostream": "cpp",
50+
"istream": "cpp",
51+
"limits": "cpp",
52+
"new": "cpp",
53+
"ostream": "cpp",
54+
"ranges": "cpp",
55+
"sstream": "cpp",
56+
"stdexcept": "cpp",
57+
"stop_token": "cpp",
58+
"streambuf": "cpp",
59+
"thread": "cpp",
60+
"cinttypes": "cpp",
61+
"typeinfo": "cpp"
62+
}
63+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
file(GLOB ROOT_SOURCE *.cpp)
2+
file(GLOB ROOT_INLINE *.inl)
3+
file(GLOB ROOT_HEADER *.hpp)
4+
file(GLOB ROOT_TEXT ../*.txt)
5+
file(GLOB ROOT_MD ../*.md)
6+
file(GLOB ROOT_NAT ../util/glm.natvis)
7+
8+
file(GLOB_RECURSE CORE_SOURCE ./detail/*.cpp)
9+
file(GLOB_RECURSE CORE_INLINE ./detail/*.inl)
10+
file(GLOB_RECURSE CORE_HEADER ./detail/*.hpp)
11+
12+
file(GLOB_RECURSE EXT_SOURCE ./ext/*.cpp)
13+
file(GLOB_RECURSE EXT_INLINE ./ext/*.inl)
14+
file(GLOB_RECURSE EXT_HEADER ./ext/*.hpp)
15+
16+
file(GLOB_RECURSE GTC_SOURCE ./gtc/*.cpp)
17+
file(GLOB_RECURSE GTC_INLINE ./gtc/*.inl)
18+
file(GLOB_RECURSE GTC_HEADER ./gtc/*.hpp)
19+
20+
file(GLOB_RECURSE GTX_SOURCE ./gtx/*.cpp)
21+
file(GLOB_RECURSE GTX_INLINE ./gtx/*.inl)
22+
file(GLOB_RECURSE GTX_HEADER ./gtx/*.hpp)
23+
24+
file(GLOB_RECURSE SIMD_SOURCE ./simd/*.cpp)
25+
file(GLOB_RECURSE SIMD_INLINE ./simd/*.inl)
26+
file(GLOB_RECURSE SIMD_HEADER ./simd/*.h)
27+
28+
source_group("Text Files" FILES ${ROOT_TEXT} ${ROOT_MD})
29+
source_group("Core Files" FILES ${CORE_SOURCE})
30+
source_group("Core Files" FILES ${CORE_INLINE})
31+
source_group("Core Files" FILES ${CORE_HEADER})
32+
source_group("EXT Files" FILES ${EXT_SOURCE})
33+
source_group("EXT Files" FILES ${EXT_INLINE})
34+
source_group("EXT Files" FILES ${EXT_HEADER})
35+
source_group("GTC Files" FILES ${GTC_SOURCE})
36+
source_group("GTC Files" FILES ${GTC_INLINE})
37+
source_group("GTC Files" FILES ${GTC_HEADER})
38+
source_group("GTX Files" FILES ${GTX_SOURCE})
39+
source_group("GTX Files" FILES ${GTX_INLINE})
40+
source_group("GTX Files" FILES ${GTX_HEADER})
41+
source_group("SIMD Files" FILES ${SIMD_SOURCE})
42+
source_group("SIMD Files" FILES ${SIMD_INLINE})
43+
source_group("SIMD Files" FILES ${SIMD_HEADER})
44+
45+
add_library(glm INTERFACE)
46+
target_include_directories(glm INTERFACE ../)
47+
48+
if(BUILD_STATIC_LIBS)
49+
add_library(glm_static STATIC ${ROOT_TEXT} ${ROOT_MD} ${ROOT_NAT}
50+
${ROOT_SOURCE} ${ROOT_INLINE} ${ROOT_HEADER}
51+
${CORE_SOURCE} ${CORE_INLINE} ${CORE_HEADER}
52+
${EXT_SOURCE} ${EXT_INLINE} ${EXT_HEADER}
53+
${GTC_SOURCE} ${GTC_INLINE} ${GTC_HEADER}
54+
${GTX_SOURCE} ${GTX_INLINE} ${GTX_HEADER}
55+
${SIMD_SOURCE} ${SIMD_INLINE} ${SIMD_HEADER})
56+
target_link_libraries(glm_static PUBLIC glm)
57+
add_library(glm::glm_static ALIAS glm_static)
58+
endif()
59+
60+
if(BUILD_SHARED_LIBS)
61+
add_library(glm_shared SHARED ${ROOT_TEXT} ${ROOT_MD} ${ROOT_NAT}
62+
${ROOT_SOURCE} ${ROOT_INLINE} ${ROOT_HEADER}
63+
${CORE_SOURCE} ${CORE_INLINE} ${CORE_HEADER}
64+
${EXT_SOURCE} ${EXT_INLINE} ${EXT_HEADER}
65+
${GTC_SOURCE} ${GTC_INLINE} ${GTC_HEADER}
66+
${GTX_SOURCE} ${GTX_INLINE} ${GTX_HEADER}
67+
${SIMD_SOURCE} ${SIMD_INLINE} ${SIMD_HEADER})
68+
target_link_libraries(glm_shared PUBLIC glm)
69+
add_library(glm::glm_shared ALIAS glm_shared)
70+
endif()

0 commit comments

Comments
 (0)