cpp测试程序添加必要编译宏

This commit is contained in:
ziyue 2022-07-29 18:14:10 +08:00
parent afcf247464
commit bdd83cf61a

View File

@ -39,6 +39,9 @@ foreach(TEST_SRC ${TEST_SRC_LIST})
target_compile_options(${TEST_EXE_NAME}
PRIVATE ${COMPILE_OPTIONS_DEFAULT})
target_compile_definitions(${TEST_EXE_NAME}
PRIVATE ${MK_COMPILE_DEFINITIONS})
if(USE_SOLUTION_FOLDERS)
SET_PROPERTY(TARGET ${TEST_EXE_NAME} PROPERTY FOLDER "test")
endif()