1
1
cmake_minimum_required (VERSION 3.14)
2
2
set (proj_name UnigineEditorPlugin_Python3Scripting_x64)
3
- if (CMAKE_BUILD_TYPE MATCHES "Debug " )
3
+ if (CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo " )
4
4
set (proj_name UnigineEditorPlugin_Python3Scripting_x64d)
5
5
endif ()
6
6
project (${proj_name} CXX)
@@ -69,6 +69,14 @@ IF (WIN32)
69
69
list (APPEND PYTHON3_INCLUDES "${CMAKE_SOURCE_DIR} /Python-3.10.1/Include" )
70
70
list (APPEND PYTHON3_INCLUDES "${CMAKE_SOURCE_DIR} /Python-3.10.1/PC" )
71
71
set (PYTHON3_LIB "${CMAKE_SOURCE_DIR} /python-bin-windows/python310.lib" )
72
+
73
+ # if (CMAKE_BUILD_TYPE MATCHES "Debug")
74
+ # set(PYTHON3_LIB "${CMAKE_SOURCE_DIR}/python-bin-windows/python310_d.lib")
75
+ # else()
76
+ # set(PYTHON3_LIB "${CMAKE_SOURCE_DIR}/python-bin-windows/python310.lib")
77
+ # endif()
78
+
79
+
72
80
ELSE ()
73
81
# linux
74
82
set (PYTHON3_INCLUDES "${PROJECT_SOURCE_DIR} /python-bin-linux/include/python3.10" )
@@ -86,17 +94,17 @@ target_include_directories(${proj_name} SYSTEM
86
94
${CMAKE_CURRENT_BINARY_DIR}
87
95
)
88
96
89
- if (CMAKE_BUILD_TYPE MATCHES "Debug " )
97
+ if (CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo " )
90
98
target_compile_definitions (${proj_name}
91
99
PRIVATE
92
100
DEBUG
93
- QT_DEBUG
101
+ # QT_DEBUG
94
102
)
95
103
else ()
96
104
target_compile_definitions (${proj_name}
97
105
PRIVATE
98
106
NDEBUG
99
- QT_NO_DEBUG
107
+ # QT_NO_DEBUG
100
108
)
101
109
endif ()
102
110
@@ -108,6 +116,8 @@ set_target_properties(${proj_name}
108
116
# ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/../lib/editor/
109
117
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR} /../bin/editor_debug/
110
118
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR} /../bin/editor_debug/
119
+ RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ${PROJECT_SOURCE_DIR} /../bin/editor_debug/
120
+ LIBRARY_OUTPUT_DIRECTORY_RELWITHDEBINFO ${PROJECT_SOURCE_DIR} /../bin/editor_debug/
111
121
# ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/../lib/editor_debug/
112
122
C_VISIBILITY_PRESET hidden
113
123
CXX_VISIBILITY_PRESET hidden
0 commit comments