-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathCMakeLists.txt
135 lines (128 loc) · 3.31 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
cmake_minimum_required(VERSION 3.11)
project(BSOS)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
find_package(wxWidgets REQUIRED gl core base net xrc adv qa html propgrid)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
set(fbxsdk_dir ../fbxsdk)
find_library(fbxsdk fbxsdk PATHS ${fbxsdk_dir}/lib/gcc/x64/release)
set(commonsources
lib/FSEngine/FSBSA.cpp
lib/FSEngine/FSEngine.cpp
lib/FSEngine/FSManager.cpp
lib/gli/glm/detail/glm.cpp
lib/LZ4F/lz4.c
lib/LZ4F/lz4frame.c
lib/LZ4F/lz4hc.c
lib/LZ4F/xxhash.c
lib/nifly/src/Animation.cpp
lib/nifly/src/BasicTypes.cpp
lib/nifly/src/bhk.cpp
lib/nifly/src/ExtraData.cpp
lib/nifly/src/Factory.cpp
lib/nifly/src/Geometry.cpp
lib/nifly/src/NifFile.cpp
lib/nifly/src/Nodes.cpp
lib/nifly/src/Object3d.cpp
lib/nifly/src/Objects.cpp
lib/nifly/src/Particles.cpp
lib/nifly/src/Shaders.cpp
lib/nifly/src/Skin.cpp
lib/SOIL2/wfETC.c
lib/SOIL2/image_DXT.c
lib/SOIL2/image_helper.c
lib/SOIL2/SOIL2.c
lib/TinyXML-2/tinyxml2.cpp
src/components/Anim.cpp
src/components/Automorph.cpp
src/components/DiffData.cpp
src/components/Mesh.cpp
src/components/NormalGenLayers.cpp
src/components/SliderCategories.cpp
src/components/SliderData.cpp
src/components/SliderGroup.cpp
src/components/SliderManager.cpp
src/components/SliderPresets.cpp
src/components/SliderSet.cpp
src/files/MaterialFile.cpp
src/files/ResourceLoader.cpp
src/files/TriFile.cpp
src/program/GroupManager.cpp
src/program/PresetSaveDialog.cpp
src/render/GLExtensions.cpp
src/render/GLMaterial.cpp
src/render/GLOffscreenBuffer.cpp
src/render/GLShader.cpp
src/render/GLSurface.cpp
src/render/GLCanvas.cpp
src/render/GLDialog.cpp
src/ui/wxStateButton.cpp
src/ui/wxSliderPanel.cpp
src/utils/AABBTree.cpp
src/utils/ConfigurationManager.cpp
src/utils/Log.cpp
src/utils/PlatformUtil.cpp
src/utils/StringStuff.cpp
)
set(OSsources
${commonsources}
src/components/PoseData.cpp
src/components/RefTemplates.cpp
src/components/TweakBrush.cpp
src/components/UndoHistory.cpp
src/components/WeightNorm.cpp
src/files/FBXWrangler.cpp
src/files/ObjFile.cpp
src/ui/wxBrushSettingsPopup.cpp
src/program/EditUV.cpp
src/program/FBXImportDialog.cpp
src/program/ObjImportDialog.cpp
src/program/OutfitProject.cpp
src/program/OutfitStudio.cpp
src/program/ShapeProperties.cpp
src/program/ConvertBodyReferenceDialog.cpp
src/program/SliderDataImportDialog.cpp
)
set(BSsources
${commonsources}
src/files/wxDDSImage.cpp
src/program/BodySlideApp.cpp
src/program/NormalsGenDialog.cpp
src/program/PreviewWindow.cpp
src/ui/wxNormalsGenDlg.cpp
src/components/BuildSelection.cpp
)
add_executable(OutfitStudio ${OSsources})
add_executable(BodySlide ${BSsources})
include(${wxWidgets_USE_FILE})
target_include_directories(OutfitStudio SYSTEM PRIVATE
${fbxsdk_dir}/include
/usr/include/wine/windows
)
target_include_directories(BodySlide SYSTEM PRIVATE
/usr/include/wine/windows
)
target_include_directories(OutfitStudio PUBLIC
lib/gli
lib/nifly/include
lib/nifly/external
lib/TinyXML-2
)
target_include_directories(BodySlide PUBLIC
lib/gli
lib/nifly/include
lib/nifly/external
lib/TinyXML-2
)
target_link_libraries(OutfitStudio
${wxWidgets_LIBRARIES}
${OPENGL_LIBRARIES}
${GLEW_LIBRARIES}
${fbxsdk}
xml2)
target_link_libraries(BodySlide
${wxWidgets_LIBRARIES}
${OPENGL_LIBRARIES}
${GLEW_LIBRARIES}
xml2)