Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ar_sandbox_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AR_Sandbox
ar_sandbox_python
Commits
6f97b67a
Commit
6f97b67a
authored
2 months ago
by
Quentin Leblanc
Browse files
Options
Downloads
Patches
Plain Diff
aded build of python package after compilation of wrapper so
parent
bef8c5ec
No related branches found
No related tags found
1 merge request
!1
Update of install process
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+10
-9
10 additions, 9 deletions
CMakeLists.txt
with
10 additions
and
9 deletions
CMakeLists.txt
+
10
−
9
View file @
6f97b67a
...
@@ -71,17 +71,18 @@ target_compile_options(${LIBNAME} PRIVATE
...
@@ -71,17 +71,18 @@ target_compile_options(${LIBNAME} PRIVATE
# Création des liens symboliques après la compilation
# Création des liens symboliques après la compilation
add_custom_command
(
TARGET
${
LIBNAME
}
POST_BUILD
add_custom_command
(
TARGET
${
LIBNAME
}
POST_BUILD
COMMAND ln -sf
${
LIBNAME
}
.so.
${
LIB_MAJOR_VERS
}
COMMAND ln -sf
${
LIBNAME
}
.so
WORKING_DIRECTORY
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
WORKING_DIRECTORY
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
COMMENT
"Création des liens symboliques pour
${
LIBNAME
}
"
COMMENT
"Copie de
${
LIB_FULL_NAME
}
dans src/ar_sandbox/wrapper"
COMMENT
"Copie de libsandbox_wrapper.so.1.0.0 dans src/ar_sandbox/wrapper"
COMMAND
${
CMAKE_COMMAND
}
COMMAND cp libsandbox_wrapper.so.1.0.0 ../src/ar_sandbox/wrapper/
"
${
LIBNAME
}
.so"
ARGS -E copy
"lib
${
LIB_FULL_NAME
}
"
../src/ar_sandbox/wrapper/
"
${
LIBNAME
}
.so"
)
add_custom_command
(
TARGET
${
LIBNAME
}
POST_BUILD
WORKING_DIRECTORY
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
COMMENT
"Création du module Python dans le répertoire dist/"
COMMAND python -m build ..
# Création du module python en prenant en compte que cmake est exécuté dans un répertoir build situé à la racine du projet.
)
)
# Installation de la bibliothèque et des fichiers d'en-tête
# Installation de la bibliothèque et des fichiers d'en-tête
install
(
TARGETS
${
LIBNAME
}
DESTINATION lib
)
install
(
TARGETS
${
LIBNAME
}
DESTINATION lib
)
install
(
DIRECTORY inc/ DESTINATION include
)
install
(
DIRECTORY inc/ DESTINATION include
)
\ No newline at end of file
install
(
CODE
"execute_process(COMMAND ln -sf
${
LIB_FULL_NAME
}
${
CMAKE_INSTALL_PREFIX
}
/lib/
${
LIBNAME
}
.so.
${
LIB_MAJOR_VERS
}
)"
)
install
(
CODE
"execute_process(COMMAND ln -sf
${
LIB_FULL_NAME
}
${
CMAKE_INSTALL_PREFIX
}
/lib/
${
LIBNAME
}
.so)"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment