cmake_minimum_required(VERSION 3.16)

project(CoreImplement)

# CoreImplement 工程只有在debug时候h才有效
set(SOURCES
    $<$<CONFIG:Debug>:../corelibrary/implement/i_xequipmentimpl.cpp>
    $<$<CONFIG:Debug>:../corelibrary/implement/i_aecdbxequipment.cpp>
    $<$<CONFIG:Debug>:../corelibrary/implement/stdafx.cpp>
    $<$<CONFIG:Debug>:../corelibrary/implement/i_imphvactee.cpp>
    $<$<CONFIG:Debug>:../corelibrary/implement/i_imphvaccross.cpp>
    $<$<CONFIG:Debug>:../corelibrary/implement/i_imphvacelbow.cpp>
    $<$<CONFIG:Debug>:../corelibrary/implement/i_imphvacoffset.cpp>
    $<$<CONFIG:Debug>:../corelibrary/implement/i_imphvacreducer.cpp>
    )

if (SOURCES)
    add_library(CoreImplement STATIC ${SOURCES})

    target_link_objectarx(CoreImplement EARTHWORM_EXPORT)

    target_compile_definitions(CoreImplement PRIVATE
        #$<$<CONFIG:Debug>:WF2023>
        #$<$<CONFIG:Debug>:BAL_REMOTE>
        )

    target_precompile_headers(CoreImplement PRIVATE ../corelibrary/implement/StdAfx.h)
endif()