From 2989889b4a727da221720ebc932ba68038d5fe97 Mon Sep 17 00:00:00 2001 From: _Redstone_c_ Date: Wed, 1 Dec 2021 23:07:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=20Test=20=E6=A8=A1=E5=9D=97=E4=BB=8E?= =?UTF-8?q?=E5=82=A8=E5=AD=98=E5=BA=93=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Redcraft.Utility.Test/CMakeLists.txt | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 Redcraft.Utility.Test/CMakeLists.txt diff --git a/Redcraft.Utility.Test/CMakeLists.txt b/Redcraft.Utility.Test/CMakeLists.txt deleted file mode 100644 index 45671e9..0000000 --- a/Redcraft.Utility.Test/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -cmake_minimum_required (VERSION 3.8) - -# Set module name. -string(REGEX REPLACE ".*/(.*)" "\\1" MODULE_NAME ${CMAKE_CURRENT_SOURCE_DIR}) -message (STATUS "Configuring module: " ${MODULE_NAME}) - -# Add target. -file (GLOB_RECURSE MODULE_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/Source/*") -add_executable(${MODULE_NAME} ${MODULE_SOURCE_FILES}) -target_compile_definitions (${MODULE_NAME} PRIVATE "MODULE_NAME=${MODULE_NAME}") - -# Add include directories. -target_include_directories (${MODULE_NAME} PRIVATE "Source") - -# Define API macro. -string (TOUPPER ${MODULE_NAME} MODULE_API) -string (REGEX REPLACE "[^A-Z ^0-1]" "" MODULE_API ${MODULE_API}) -set (MODULE_API "${MODULE_API}_API") -target_compile_definitions (${MODULE_NAME} PRIVATE "${MODULE_API}=DLLEXPORT") -target_compile_definitions (${MODULE_NAME} INTERFACE "${MODULE_API}=DLLIMPORT") - -# Add project dependencies -target_link_libraries (${MODULE_NAME} PRIVATE Redcraft.Utility)