Add unitest
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "ANSLIB.h"
|
||||
|
||||
//#define FNS_DEBUG
|
||||
#define FNS_DEBUG
|
||||
class CUSTOM_API ANSCustomHMD : public IANSCustomClass
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -30,7 +30,7 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
|
||||
# ---------- include directories ----------
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
C:/Projects/ANLS/ANSLIB/ANSLIB
|
||||
C:/ProgramData/ANSCENTER/Shared # ANSLIB.h + ANSLIB.lib from same location
|
||||
C:/ANSLibs/opencv/include
|
||||
)
|
||||
|
||||
@@ -51,10 +51,12 @@ if(MSVC)
|
||||
/W3 # Warning level 3
|
||||
/sdl # SDL checks
|
||||
/permissive- # Conformance mode
|
||||
$<$<CONFIG:Release>:/O2 /Oi /GL> # Optimize + intrinsics + whole-program opt
|
||||
/Zi # Generate full debug info (PDB) in all configs
|
||||
$<$<CONFIG:Release>:/O2 /Oi> # Optimize + intrinsics (no /GL — incompatible with debugging)
|
||||
)
|
||||
|
||||
target_link_options(${PROJECT_NAME} PRIVATE
|
||||
$<$<CONFIG:Release>:/OPT:REF /OPT:ICF /LTCG> # Optimize refs, COMDAT folding, link-time codegen
|
||||
/DEBUG # Emit PDB for debugger in all configs
|
||||
$<$<CONFIG:Release>:/OPT:REF /OPT:ICF> # Optimize refs, COMDAT folding (no /LTCG — incompatible with debugging)
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user