Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FleetTruckView
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
FleetTruck
FleetTruckView
Commits
309d21cc
Commit
309d21cc
authored
Dec 03, 2024
by
李玲燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改CMake
parent
31d370b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
CMakeLists.txt
CMakeLists.txt
+23
-6
No files found.
CMakeLists.txt
View file @
309d21cc
...
@@ -8,7 +8,7 @@ set (CMAKE_CXX_STANDARD 11)
...
@@ -8,7 +8,7 @@ set (CMAKE_CXX_STANDARD 11)
# Version.
# Version.
set
(
MAJOR_VERSION
"1"
)
set
(
MAJOR_VERSION
"1"
)
set
(
MINOR_VERSION
"2"
)
set
(
MINOR_VERSION
"2"
)
set
(
PATCH_VERSION
"
4
"
)
set
(
PATCH_VERSION
"
5
"
)
# Import cmake modules.
# Import cmake modules.
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{HT_BUILDSYS_CMAKE_MODULES}"
)
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{HT_BUILDSYS_CMAKE_MODULES}"
)
...
@@ -29,8 +29,15 @@ add_custom_target ("${PROJECT_NAME}" ALL
...
@@ -29,8 +29,15 @@ add_custom_target ("${PROJECT_NAME}" ALL
DEPENDS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/dist"
DEPENDS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/dist"
)
)
install
(
DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/dist"
install
(
DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/dist/assets"
DESTINATION
"/var/www/
${
PROJECT_NAME
}
"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/dist/image"
DESTINATION
"/var/www/
${
PROJECT_NAME
}
/dist"
)
install
(
PROGRAMS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/dist/config.json"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/dist/favicon.ico"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/dist/index.html"
DESTINATION
"/var/www/
${
PROJECT_NAME
}
/dist"
)
)
...
@@ -43,8 +50,18 @@ set (CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")
...
@@ -43,8 +50,18 @@ set (CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")
set
(
CPACK_PACKAGE_CONTACT
"Li Lingyan <lingyan.li@waytous.com>, Gao Xiaofan <xiaofan.gao@waytous.com>"
)
set
(
CPACK_PACKAGE_CONTACT
"Li Lingyan <lingyan.li@waytous.com>, Gao Xiaofan <xiaofan.gao@waytous.com>"
)
set
(
CPACK_DEBIAN_PACKAGE_DESCRIPTION
"webtruckview. Branch:
${
GIT_BRANCH
}
. Commit:
${
GIT_LAST_COMMIT
}
."
)
set
(
CPACK_DEBIAN_PACKAGE_DESCRIPTION
"webtruckview. Branch:
${
GIT_BRANCH
}
. Commit:
${
GIT_LAST_COMMIT
}
."
)
# 运维配置路径
file
(
GLOB_RECURSE PACKAGE_EXTRAS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/debian_package/*"
)
add_deb_control_extra
(
FILES
"
${
PACKAGE_EXTRAS
}
"
)
#告诉运维配置文件路径
add_deb_conffiles
(
add_deb_conffiles
(
FILES
"/var/www/
${
PROJECT_NAME
}
/dist/config.json"
FILES
"/var/www/
${
PROJECT_NAME
}
/dist/config.json"
)
)
include
(
HtCMakeDeb
)
include
(
HtCMakeDeb
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment