From bdd83cf61a4c0f705ceeff64b76123f3fefb4dd0 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Fri, 29 Jul 2022 18:14:10 +0800 Subject: [PATCH] =?UTF-8?q?cpp=E6=B5=8B=E8=AF=95=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BF=85=E8=A6=81=E7=BC=96=E8=AF=91=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 336be968..9d154764 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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()