forked from YihaoPeng/DragonbornSpeaksNaturally
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (47 loc) · 1.6 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
cmake_minimum_required(VERSION 3.5)
project(DSN LANGUAGES CXX CSharp)
#
# Sub Projects
#
set(IS_SUB_PROJECT ON)
message(" ") # empty line
message("================ Configure sub-project dsn_plugin ================")
add_subdirectory(dsn_plugin)
message(" ") # empty line
message("================ Configure sub-project dsn_service ================")
add_subdirectory(dsn_service)
#
# ZIP Package
#
message(" ") # empty line
message("================ Configure ZIP Packages ================")
option(PACKAGE "Generate NMM/Vortex Compatible ZIP Package" ON)
if (PACKAGE)
message("-- Generate NMM/Vortex Compatible ZIP Package: On (-DPACKAGE=ON)")
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/package_tmp)
install(
DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/docs
${CMAKE_CURRENT_SOURCE_DIR}/fomod
DESTINATION .
)
install(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/DragonbornSpeaksNaturally.SAMPLE.ini
${CMAKE_CURRENT_SOURCE_DIR}/item-name-map.SAMPLE.json
${CMAKE_CURRENT_SOURCE_DIR}/SRGS.SAMPLE.xml
DESTINATION SkyrimVR/Data/Plugins/Sumwunn
)
install(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/DragonbornSpeaksNaturally.SAMPLE.ini
${CMAKE_CURRENT_SOURCE_DIR}/item-name-map.SAMPLE.json
${CMAKE_CURRENT_SOURCE_DIR}/SRGS.SAMPLE.xml
DESTINATION SkyrimSE/Data/Plugins/Sumwunn
)
set(CPACK_GENERATOR ZIP)
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
include(CPack)
else()
message("-- Generate NMM/Vortex Compatible ZIP Package: Off (-DPACKAGE=OFF)")
endif()