forked from OnexTale/OnexExplorer
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
120 lines (107 loc) · 4.16 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
cmake_minimum_required(VERSION 3.5)
project(OnexExplorer)
set(DTARGET_64 ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Gui REQUIRED)
set(GLUT_LIBRARY_DIR "freeglut/lib")
set(GLUT_INCLUDE_DIR "freeglut/include/GL")
find_package(GLUT REQUIRED)
include_directories(${GLUT_INCLUDE_DIR})
set(SOURCES
Source/main.cpp
Source/MainWindow.cpp
Source/Converters/ImageConverter.cpp
Source/Converters/LittleEndianConverter.cpp
Source/Converters/NosModelConverter.cpp
Source/Converters/ObjConverter.cpp
Source/Decryptors/NosTextDatFileDecryptor.cpp
Source/Decryptors/NosTextOthersFileDecryptor.cpp
Source/Decryptors/NosZlibDecryptor.cpp
Source/Openers/NosZlibOpener.cpp
Source/Openers/NosCCInfOpener.cpp
Source/Openers/NosTextOpener.cpp
Source/Openers/INosFileOpener.cpp
Source/Openers/JsonConfigOpener.cpp
Source/Ui/OnexTreeItem.cpp
Source/Ui/FileInfo.cpp
Source/Ui/Settings.cpp
Source/Ui/Previews/SingleTextFilePreview.cpp
Source/Ui/Previews/SingleImagePreview.cpp
Source/Ui/Previews/MultiImagePreview.cpp
Source/Ui/Previews/SingleModelPreview.cpp
Source/Ui/TreeItems/OnexTreeImage.cpp
Source/Ui/TreeItems/OnexTreeText.cpp
Source/Ui/TreeItems/OnexTreeZlibItem.cpp
Source/Ui/TreeItems/OnexNSipData.cpp
Source/Ui/TreeItems/OnexNS4BbData.cpp
Source/Ui/TreeItems/OnexNStcData.cpp
Source/Ui/TreeItems/OnexNStpData.cpp
Source/Ui/TreeItems/OnexNStpMipMap.cpp
Source/Ui/TreeItems/OnexNSmpData.cpp
Source/Ui/TreeItems/OnexNSmpFrame.cpp
Source/Ui/TreeItems/OnexNStgData.cpp
Source/Ui/TreeItems/OnexNSmnData.cpp
Source/Ui/TreeItems/OnexNSmcData.cpp
)
set(MOC_HEADERS
Source/MainWindow.h
Source/NosEnumTypes.h
Source/Converters/ImageConverter.h
Source/Converters/LittleEndianConverter.h
Source/Converters/IModelConverter.h
Source/Converters/NosModelConverter.h
Source/Converters/ObjConverter.h
Source/Decryptors/NosTextDatFileDecryptor.h
Source/Decryptors/NosTextOthersFileDecryptor.h
Source/Decryptors/NosZlibDecryptor.h
Source/Openers/NosZlibOpener.h
Source/Openers/NosCCInfOpener.h
Source/Openers/NosTextOpener.h
Source/Openers/INosFileOpener.h
Source/Openers/JsonConfigOpener.h
Source/Ui/OnexTreeItem.h
Source/Ui/FileInfo.h
Source/Ui/Settings.h
Source/Ui/Previews/SingleTextFilePreview.h
Source/Ui/Previews/SingleImagePreview.h
Source/Ui/Previews/MultiImagePreview.h
Source/Ui/Previews/SingleModelPreview.h
Source/Ui/TreeItems/OnexTreeImage.h
Source/Ui/TreeItems/OnexTreeText.h
Source/Ui/TreeItems/OnexTreeZlibItem.h
Source/Ui/TreeItems/OnexNSipData.h
Source/Ui/TreeItems/OnexNS4BbData.h
Source/Ui/TreeItems/OnexNStcData.h
Source/Ui/TreeItems/OnexNStpData.h
Source/Ui/TreeItems/OnexNStpMipMap.h
Source/Ui/TreeItems/OnexNSmpData.h
Source/Ui/TreeItems/OnexNSmpFrame.h
Source/Ui/TreeItems/OnexNStgData.h
Source/Ui/TreeItems/OnexNSmnData.h
Source/Ui/TreeItems/OnexNSmcData.h
)
set(UIS
Source/mainwindow.ui
Source/Ui/Previews/SingleTextFilePreview.ui
Source/Ui/Previews/SingleImagePreview.ui
Source/Ui/Previews/MultiImagePreview.ui
Source/Ui/Settings.ui
)
set(RESOURCES
resources.qrc
)
# compile
#add_executable( PROJECT_NAME ${SOURCES} ${MOC_SRCS} ${RES_SOURCES} ${UI_HEADERS} )
# or use line below instead, if you using Windows ™ Operating System.
add_executable(OnexExplorer WIN32 ${SOURCES} ${MOC_SRCS} ${RES_SOURCES} ${UI_HEADERS} ${RESOURCES})
# build it (link libraries)
target_link_libraries(OnexExplorer Qt5::Core)
target_link_libraries(OnexExplorer Qt5::Widgets)
target_link_libraries(OnexExplorer Qt5::Gui)
target_link_libraries(OnexExplorer ${GLUT_LIBRARIES})