11cmake_minimum_required (VERSION 3.14)
22set (proj_name UnigineEditorPlugin_Python3Scripting_x64)
3- if (CMAKE_BUILD_TYPE MATCHES "Debug " )
3+ if (CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo " )
44 set (proj_name UnigineEditorPlugin_Python3Scripting_x64d)
55endif ()
66project (${proj_name} CXX)
@@ -69,6 +69,14 @@ IF (WIN32)
6969 list (APPEND PYTHON3_INCLUDES "${CMAKE_SOURCE_DIR} /Python-3.10.1/Include" )
7070 list (APPEND PYTHON3_INCLUDES "${CMAKE_SOURCE_DIR} /Python-3.10.1/PC" )
7171 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+
7280ELSE ()
7381 # linux
7482 set (PYTHON3_INCLUDES "${PROJECT_SOURCE_DIR} /python-bin-linux/include/python3.10" )
@@ -86,17 +94,17 @@ target_include_directories(${proj_name} SYSTEM
8694 ${CMAKE_CURRENT_BINARY_DIR}
8795 )
8896
89- if (CMAKE_BUILD_TYPE MATCHES "Debug " )
97+ if (CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo " )
9098 target_compile_definitions (${proj_name}
9199 PRIVATE
92100 DEBUG
93- QT_DEBUG
101+ # QT_DEBUG
94102 )
95103else ()
96104 target_compile_definitions (${proj_name}
97105 PRIVATE
98106 NDEBUG
99- QT_NO_DEBUG
107+ # QT_NO_DEBUG
100108 )
101109endif ()
102110
@@ -108,6 +116,8 @@ set_target_properties(${proj_name}
108116 # ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/../lib/editor/
109117 RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR} /../bin/editor_debug/
110118 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/
111121 # ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/../lib/editor_debug/
112122 C_VISIBILITY_PRESET hidden
113123 CXX_VISIBILITY_PRESET hidden
0 commit comments