-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
91 lines (73 loc) · 3.61 KB
/
Copy pathCMakeLists.txt
File metadata and controls
91 lines (73 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
cmake_minimum_required ( VERSION 3.20 )
project ( testprj )
set ( PRJ_INCLUDE_DIRS )
set ( PRJ_COMPILE_FEATURES )
set ( PRJ_LIBRARIES )
list ( APPEND PRJ_COMPILE_FEATURES cxx_std_20 )
find_package (Python COMPONENTS Interpreter Development)
get_directory_property( my_system_targets DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} BUILDSYSTEM_TARGETS )
get_directory_property( my_import_targets DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} IMPORTED_TARGETS )
message( STATUS "my_system_targets=${my_system_targets}" )
message( STATUS "my_import_targets=${my_import_targets}" )
message ( STATUS "AVAILABLE_CONFIGURATION_TYPES = ${AVAILABLE_CONFIGURATION_TYPES} " )
message ( STATUS "CMAKE_PROPERTY_LIST = ${CMAKE_PROPERTY_LIST} " )
message ( STATUS "Python_FOUND = ${Python_FOUND} " )
message ( STATUS "PythonLibs_FOUND = ${PythonLibs_FOUND} " )
message ( STATUS "PYTHONLIBS_FOUND = ${PYTHONLIBS_FOUND} " )
message ( STATUS "Python_Interpreter_FOUND = ${Python_Interpreter_FOUND} " )
message ( STATUS "Python_EXECUTABLE = ${Python_EXECUTABLE} " )
message ( STATUS "Python_INTERPRETER_ID = ${Python_INTERPRETER_ID} " )
message ( STATUS "Python_STDLIB = ${Python_STDLIB} " )
message ( STATUS "Python_STDARCH = ${Python_STDARCH} " )
message ( STATUS "Python_SITELIB = ${Python_SITELIB} " )
message ( STATUS "Python_SITEARCH = ${Python_SITEARCH} " )
message ( STATUS "Python_SOABI = ${Python_SOABI} " )
message ( STATUS "Python_Compiler_FOUND = ${Python_Compiler_FOUND} " )
message ( STATUS "Python_COMPILER = ${Python_COMPILER} " )
message ( STATUS "Python_DOTNET_LAUNCHER = ${Python_DOTNET_LAUNCHER} " )
message ( STATUS "Python_Development_FOUND = ${Python_Development_FOUND} " )
message ( STATUS "Python_Development.Module_FOUND = ${Python_Development.Module_FOUND} " )
message ( STATUS "Python_Development.Embed_FOUND = ${Python_Development.Embed_FOUND} " )
message ( STATUS "Python_LINK_OPTIONS = ${Python_LINK_OPTIONS} " )
message ( STATUS "Python_INCLUDE_DIRS = ${Python_INCLUDE_DIRS} " )
message ( STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS} " )
message ( STATUS "Python_LIBRARIES = ${Python_LIBRARIES} " )
message ( STATUS "Python_LIBRARY_DIRS = ${Python_LIBRARY_DIRS} " )
message ( STATUS "Python_RUNTIME_LIBRARY_DIRS = ${Python_RUNTIME_LIBRARY_DIRS} " )
message ( STATUS "Python_VERSION = ${Python_VERSION} " )
message ( STATUS "Python_VERSION_MAJOR = ${Python_VERSION_MAJOR} " )
message ( STATUS "Python_VERSION_MINOR = ${Python_VERSION_MINOR} " )
message ( STATUS "Python_VERSION_PATCH = ${Python_VERSION_PATCH} " )
message ( STATUS "Python_PyPy_VERSION = ${Python_PyPy_VERSION} " )
message ( STATUS "Python_NumPy_FOUND = ${Python_NumPy_FOUND} " )
message ( STATUS "Python_NumPy_INCLUDE_DIRS = ${Python_NumPy_INCLUDE_DIRS} " )
message ( STATUS "Python_NumPy_VERSION = ${Python_NumPy_VERSION} " )
message ( STATUS "PYTHON_LIBRARIES = ${PYTHON_LIBRARIES} " )
message ( STATUS "PYTHON_INCLUDE_PATH = ${PYTHON_INCLUDE_PATH} " )
message ( STATUS "PYTHON_DEBUG_LIBRARIES = ${PYTHON_DEBUG_LIBRARIES} " )
message ( STATUS "PYTHONLIBS_VERSION_STRING = ${PYTHONLIBS_VERSION_STRING} " )
message ( STATUS "CMAKE_VERSION = ${CMAKE_VERSION} " )
if ( TARGET Python::Interpreter )
message ( STATUS "TARGET Python::Interpreter" )
endif()
include(CMakePrintHelpers)
cmake_print_properties(
TARGETS Python::Python
PROPERTIES IMPORTED_LOCATION_DEBUG
)
cmake_print_properties(
TARGETS Python::Python
PROPERTIES INTERFACE_LINK_LIBRARIES
)
cmake_print_properties(
TARGETS Python::Python
PROPERTIES COMPILE_DEFINITIONS
)
cmake_print_properties(
TARGETS Python::Python
PROPERTIES INCLUDE_DIRECTORIES
)
cmake_print_properties(
TARGETS Python::Python
PROPERTIES LINK_DIRECTORIES
)