-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |