Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cameo
cameo
Commits
a09e1a31
Commit
a09e1a31
authored
Jun 03, 2021
by
yannick legoc
Browse files
Merge branch 'cameopy_name' into 'master'
fixing cameopy name and location to debian defaults See merge request
!7
parents
3aa4c28d
d03e8f90
Changes
2
Hide whitespace changes
Inline
Side-by-side
cameo-api-python/CMakeLists.txt
View file @
a09e1a31
cmake_minimum_required
(
VERSION 3.12.0
)
# Project name and version
project
(
cameo
-api-python
project
(
cameo
py
VERSION 1.0.0
LANGUAGES CXX
HOMEPAGE_URL
"https://code.ill.fr/cameo/cameo"
...
...
@@ -23,6 +23,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../cameo-api-cpp/)
#message(STATUS ${CMAKE_MODULE_PATH})
find_package
(
cameo-api-cpp-static 1.1.0 REQUIRED
)
# provided by the C++ API
find_package
(
pybind11 2.4.3 QUIET
)
find_package
(
Python REQUIRED
)
if
(
NOT pybind11_FOUND
)
message
(
WARNING
"Using pybind11 from GIT repository"
)
FetchContent_Declare
(
pybind11
...
...
@@ -64,9 +65,8 @@ if(WIN32)
"
${
CMAKE_INSTALL_LIBDIR
}
/site-packages"
)
else
()
set
(
CMAKE_INSTALL_PYTHONDIR_DEFAULT
"
${
CMAKE_INSTALL_LIBDIR
}
/python
${
PYTHON_VERSION_MAJOR
}
.
${
PYTHON_VERSION_MINOR
}
/site-packages"
)
file
(
RELATIVE_PATH CMAKE_INSTALL_PYTHONDIR_DEFAULT
"/usr/"
${
Python_SITELIB
}
)
# "${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages"
endif
()
set
(
CMAKE_INSTALL_PYTHONDIR
"
${
CMAKE_INSTALL_PYTHONDIR_DEFAULT
}
"
CACHE STRING
"Location for installed python package"
...
...
cameo-api-python/packaging/CPackConfig.cmake
View file @
a09e1a31
set
(
CPACK_PACKAGE_NAME cameo-api-python
)
set
(
CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION ON
)
set
(
CPACK_PACKAGE_CHECKSUM MD5
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment