1
This commit is contained in:
@@ -60,7 +60,7 @@ void Release()
|
|||||||
int Main()
|
int Main()
|
||||||
{
|
{
|
||||||
Position* p_crash = nullptr;
|
Position* p_crash = nullptr;
|
||||||
log_info("{}", to_string(*p_crash));
|
//log_info("{}", to_string(*p_crash));
|
||||||
|
|
||||||
|
|
||||||
g_log->SetLogFile("log/");
|
g_log->SetLogFile("log/");
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ endif()
|
|||||||
if (NOT DEFINED USE_CONSOLE)
|
if (NOT DEFINED USE_CONSOLE)
|
||||||
set(USE_CONSOLE true)
|
set(USE_CONSOLE true)
|
||||||
endif()
|
endif()
|
||||||
if(WIN32 AND (NOT DEFINED USE_CRASH_RPT))
|
if(WIN32 AND (NOT DEFINED USE_CRASH_RPT) AND CMAKE_BUILD_TYPE MATCHES "Release")
|
||||||
set(USE_CRASH_RPT true)
|
set(USE_CRASH_RPT true)
|
||||||
endif()
|
endif()
|
||||||
if(USE_CRASH_RPT)
|
if(USE_CRASH_RPT)
|
||||||
@@ -88,7 +88,7 @@ include_directories(${CMAKE_SOURCE_DIR}/third/simde)
|
|||||||
# magic enmu
|
# magic enmu
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/third/magic_enum/include)
|
include_directories(${CMAKE_SOURCE_DIR}/third/magic_enum/include)
|
||||||
# CrashRpt
|
# CrashRpt
|
||||||
if(WIN32 AND USE_CRASH_RPT)
|
if(USE_CRASH_RPT)
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/third/CrashRpt/include)
|
include_directories(${CMAKE_SOURCE_DIR}/third/CrashRpt/include)
|
||||||
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/third/CrashRpt/${ARCH}/CrashRpt1403.lib)
|
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/third/CrashRpt/${ARCH}/CrashRpt1403.lib)
|
||||||
endif()
|
endif()
|
||||||
@@ -137,7 +137,7 @@ if(MSVC)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
# 复制CrashRpt
|
# 复制CrashRpt
|
||||||
if (CMAKE_BUILD_TYPE MATCHES "Release" AND USE_CRASH_RPT)
|
if (USE_CRASH_RPT)
|
||||||
add_custom_command(TARGET ${PROJECT_NAME}
|
add_custom_command(TARGET ${PROJECT_NAME}
|
||||||
PRE_BUILD
|
PRE_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E copy
|
||||||
|
|||||||
Reference in New Issue
Block a user