mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix linking
This commit is contained in:
parent
29ea2a4e99
commit
e93e8ed091
|
@ -26,14 +26,11 @@ if(BENCHMARKS)
|
|||
endif()
|
||||
|
||||
find_package(PythonInterp)
|
||||
find_package(CxxTest)
|
||||
|
||||
if(PYTHONINTERP_FOUND AND CXXTEST_FOUND)
|
||||
if(PYTHONINTERP_FOUND)
|
||||
add_subdirectory(tests)
|
||||
elseif(NOT PYTHONINTERP_FOUND)
|
||||
message("Python couldn't be found in the current PATH but is required for building tests. Tests will be skipped for now.")
|
||||
else()
|
||||
message("CxxTest couldn't be found in the current PATH but is required for building tests. Tests will be skipped for now.")
|
||||
endif()
|
||||
|
||||
add_subdirectory(source)
|
||||
|
|
|
@ -11,6 +11,9 @@ set(PROJECT_DESCRIPTION "cross-platform user-friendly xlsx library for C++14")
|
|||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../third-party")
|
||||
|
||||
find_package(ZLIB REQUIRED)
|
||||
find_package(CryptoPP REQUIRED)
|
||||
|
||||
if(APPLE)
|
||||
option(FRAMEWORK "Set to ON to package dylib and headers into a .framework, OSX only" OFF)
|
||||
endif()
|
||||
|
|
|
@ -71,7 +71,6 @@ else()
|
|||
endif()
|
||||
|
||||
find_package(PythonInterp REQUIRED)
|
||||
find_package(CxxTest REQUIRED)
|
||||
|
||||
add_custom_command(OUTPUT ${RUNNER}
|
||||
COMMAND ${CXXTEST_PYTHON_TESTGEN_EXECUTABLE} --runner=ErrorPrinter -o ${RUNNER} ${TESTS}
|
||||
|
|
2
third-party/CMakeLists.txt
vendored
2
third-party/CMakeLists.txt
vendored
|
@ -1,8 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.2)
|
||||
project(xlnt.third-party)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libstudxml)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cxxtest)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user