File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,18 @@ add_test(NAME pytest
100
100
COMMAND ${Python3_EXECUTABLE} -m pytest ${CMAKE_CURRENT_SOURCE_DIR} /python
101
101
)
102
102
103
+ if (UNIX )
103
104
add_custom_target (pip_package
104
105
COMMAND rm -rf ${CMAKE_CURRENT_BINARY_DIR} /dist && ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR} /python/setup.py sdist bdist_wheel && cp -r ${CMAKE_SOURCE_DIR} /python/dist ${CMAKE_CURRENT_BINARY_DIR} / && rm -r ${CMAKE_SOURCE_DIR} /python/dist ${CMAKE_SOURCE_DIR} /python/build
105
106
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} /python
106
107
DEPENDS install )
108
+ endif ()
109
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
110
+ add_custom_target (pip_package
111
+ COMMAND rm -rf ${CMAKE_CURRENT_BINARY_DIR} /dist && ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR} /python/setup.py sdist bdist_wheel --plat-name=macosx_11_0_arm64 && cp -r ${CMAKE_SOURCE_DIR} /python/dist ${CMAKE_CURRENT_BINARY_DIR} / && rm -r ${CMAKE_SOURCE_DIR} /python/dist ${CMAKE_SOURCE_DIR} /python/build
112
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} /python
113
+ DEPENDS install )
114
+ endif ()
107
115
108
116
##############################
109
117
### STDLIBDOC ###
You can’t perform that action at this time.
0 commit comments