Skip to content

Commit

Permalink
More testings
Browse files Browse the repository at this point in the history
  • Loading branch information
tfmoraes committed May 8, 2024
1 parent e8bd0b5 commit 37aab84
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
cmake_minimum_required(VERSION 3.9.2 FATAL_ERROR)

project(
python-gdcm
LANGUAGES CXX
)

include(CMakePrintHelpers)

SET(DCMAKE_CXX_STANDARD 11)
SET(GDCM_BUILD_APPLICATIONS ON)
SET(GDCM_DOCUMENTATION OFF)
SET(GDCM_BUILD_DOCBOOK_MANPAGES OFF)


if (WIN32)
if(WIN32)
SET(DGDCM_BUILD_SHARED_LIBS OFF)
else()
SET(DGDCM_BUILD_SHARED_LIBS ON)
endif(WIN32)

find_package(Python3 COMPONENTS Interpreter Development REQUIRED)

SET(GDCM_WRAP_PYTHON ON)
SET(GDCM_NO_PYTHON_LIBS_LINKING ON)
SET(PYTHON_EXECUTABLE "${Python3_EXECUTABLE}")
SET(PYTHON_INCLUDE_DIR "${Python3_INCLUDE_DIR}")
SET(PYTHON_LIBRARY "${Python3_LIBRARIES}")

cmake_print_variables(Python3_EXECUTABLE)
cmake_print_variables(Python3_INCLUDE_DIR)
cmake_print_variables(Python3_LIBRARIES)

SET(EXECUTABLE_OUTPUT_PATH "${SKBUILD_PLATLIB_DIR}/_gdcm")
SET(LIBRARY_OUTPUT_PATH "${SKBUILD_PLATLIB_DIR}/_gdcm")

SET(GDCM_USE_SYSTEM_OPENSSL ON)

ADD_SUBDIRECTORY("gdcm_src")
ADD_SUBDIRECTORY(gdcm_src)

0 comments on commit 37aab84

Please sign in to comment.