summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 329b5ce54c968415f50a58a6f3d272545571d046 (plain)
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
cmake_minimum_required(VERSION 3.16)
project(shemov VERSION 1.0 LANGUAGES C CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Concurrent Gui MultimediaWidgets Sql Widgets)

qt_standard_project_setup()

qt_add_executable(shemov WIN32 MACOSX_BUNDLE
    archivebrowser.cpp archivebrowser.h
    archivebrowsermodel.cpp archivebrowsermodel.h
    archivemodel.cpp archivemodel.h
    archiveview.cpp archiveview.h
    configurationdialog.cpp configurationdialog.h
    consistencycheck.cpp consistencycheck.h
    copyworker.cpp copyworker.h
    dbanalyzer.cpp dbanalyzer.h
    delegates.cpp delegates.h
    editfiledialog.cpp editfiledialog.h
    filepropertiesdialog.cpp filepropertiesdialog.h
    fsproxy.cpp fsproxy.h
    fswidget.cpp fswidget.h
    helper.cpp helper.h
    main.cpp
    mappingdata.cpp mappingdata.h
    mappingeditdialog.cpp mappingeditdialog.h
    mappingeditwidget.cpp mappingeditwidget.h
    mappinginputdialog.cpp mappinginputdialog.h
    mappingtableeditor.cpp mappingtableeditor.h
    mappingtablemodel.cpp mappingtablemodel.h
    mappingtablewidget.cpp mappingtablewidget.h
    mappingtreemodel.cpp mappingtreemodel.h
    mappingtreeproxy.cpp mappingtreeproxy.h
    mappingtreeresultmodel.cpp mappingtreeresultmodel.h
    mappingtreeresultview.cpp mappingtreeresultview.h
    mappingtreeview.cpp mappingtreeview.h
    mappingtreewidget.cpp mappingtreewidget.h
    movieinfopage.cpp movieinfopage.h
    moviemappingpage.cpp moviemappingpage.h
    moviemetadatapage.cpp moviemetadatapage.h
    moviepropertiesdialog.cpp moviepropertiesdialog.h
    moviewidget.cpp moviewidget.h
    newmoviewizard.cpp newmoviewizard.h
    newpicsdialog.cpp newpicsdialog.h
    picfilesmodel.cpp picfilesmodel.h
    picturelistview.cpp picturelistview.h
    pictureswidget.cpp pictureswidget.h
    pictureviewer2.cpp pictureviewer2.h
    programconfigurator.cpp programconfigurator.h
    randomtab.cpp randomtab.h
    searchdialog.cpp searchdialog.h
    shemov.cpp shemov.h
    shemoviconprovider.cpp shemoviconprovider.h
    smdialog.cpp smdialog.h
    smglobals.cpp smglobals.h
    sminputdialog.cpp sminputdialog.h
    smtreeitem.cpp smtreeitem.h
    smtreemodel.cpp smtreemodel.h
    smtreeview.cpp smtreeview.h
    smview.cpp smview.h
    statisticsdialog.cpp statisticsdialog.h
    unpacker.cpp unpacker.h
    viewer.cpp viewer.h
    wizardtreemodel.cpp wizardtreemodel.h
)
target_compile_definitions(shemov PRIVATE
    QT_DEPRECATED_WARNINGS
)

target_link_libraries(shemov PRIVATE
    Magick++-7.Q16HDRI
    Qt::Concurrent
    Qt::Core
    Qt::Gui
    Qt::MultimediaWidgets
    Qt::Sql
    Qt::Widgets
)


# Resources:
set(shemov_resource_files
    "analstretcher.png"
    "archive.svg"
    "back_dick.png"
    "bald_pussy.png"
    "ball_gag.png"
    "big_ass.png"
    "big_balls.png"
    "big_tit.png"
    "bizarre_amputee.png"
    "blue_syringe.png"
    "butt_plug.png"
    "butt_plug_light.png"
    "catheter_with_bag.png"
    "chastity_belt.png"
    "chastity_belt_light.png"
    "chastity_belt_with_cuffs.png"
    "clean_tampon.png"
    "clitoris.png"
    "compare.png"
    "delete.png"
    "diaper.png"
    "dick_in_cage.png"
    "dildo.png"
    "dog_hood.png"
    "dog_hood_light.png"
    "fire.png"
    "folder.png"
    "french_maid_dress.png"
    "gaping_ass.png"
    "higheels.png"
    "hourglass_figure.png"
    "huge_balls_pierced.png"
    "huge_bra.png"
    "huge_bra_light.png"
    "letter_d.png"
    "letter_n.png"
    "letter_q.png"
    "letter_t.png"
    "male_chastity_belt.png"
    "movie.svg"
    "nipple_up.png"
    "picgone.png"
    "picture.svg"
    "prince_albert.png"
    "refresh.png"
    "rename.png"
    "shackles.png"
    "shemov.png"
    "shemov_splash2.png"
    "snapshot.png"
    "spreadingpants.png"
    "squirting_nipple.png"
    "squirting_nipple_light.png"
    "steel_collar.png"
    "up_dick.png"
    "usb-32.png"
    "used_tampon.png"
)

qt_add_resources(shemov "shemov"
    PREFIX
        "/"
    FILES
        ${shemov_resource_files}
)

if(WIN32)
    target_include_directories(shemov PRIVATE
        ..\..\..\mingw64\include\ImageMagick-7
    )
endif()

if(UNIX)
    target_include_directories(shemov PRIVATE
        /usr/include/ImageMagick-7
    )
endif()

install(TARGETS shemov
    BUNDLE DESTINATION .
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

qt_generate_deploy_app_script(
    TARGET shemov
    FILENAME_VARIABLE deploy_script
    NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})