2017-07-05 07:03:34 +08:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
|
|
|
project(xlntpyarrow)
|
|
|
|
|
2017-07-07 01:28:31 +08:00
|
|
|
if(NOT MSVC)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
endif()
|
|
|
|
|
2017-07-12 15:31:12 +08:00
|
|
|
string(REGEX REPLACE "\\\\" "/" CONDA_ROOT ${CONDA_ROOT})
|
|
|
|
|
2017-07-05 07:03:34 +08:00
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/setup.py.cmake"
|
2017-07-14 03:42:47 +08:00
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/setup.py")
|
2017-07-05 07:03:34 +08:00
|
|
|
|
2017-07-08 11:16:37 +08:00
|
|
|
add_custom_target(xlntpyarrow ALL
|
2017-07-14 03:42:47 +08:00
|
|
|
COMMAND python setup.py install --record=record.txt --xlntlib=$<TARGET_FILE:xlnt>
|
2017-07-12 13:14:13 +08:00
|
|
|
DEPENDS xlnt
|
2017-07-14 03:42:47 +08:00
|
|
|
SOURCES xlntpyarrow.cpp setup.py.cmake)
|