cmake_minimum_required(VERSION 3.16)

project(ThunderProof)

set(SOURCES
    "StdAfx.cpp"
    "caculateresult.cpp"
    "createwordapp.cpp"
    "docdata.cpp"
    "drawsheet.cpp"
    "drawthunder2d.cpp"
    "drawthunder3d.cpp"
    "foldlaypindlg.cpp"
    "foldpinjig.cpp"
    "foldpinrelation.cpp"
    "foldprotool.cpp"
    "foldsetdlg.cpp"
    "foldtoolkit.cpp"
    "grouphelp.cpp"
    "ktsetting.cpp"
    "lablethunderbx.cpp"
    "laypindlg.cpp"
    "lightningroddata.cpp"
    "msword8.cpp"
    "proheighthelp.cpp"
    "rxdebug.cpp"
    "tcontainersingleton.cpp"
    "thundercaculate.cpp"
    "thundercmdgroup.cpp"
    "thunderdbreactor.cpp"
    "thunderdocreactor.cpp"
    "thundereditreactor.cpp"
    "thunderlinesetdlg.cpp"
    "thunderpolylinejig.cpp"
    "thunderproof.cpp"
    "thundersetdlg.cpp"
    "thunderxdata.cpp"
    "treactorassociate.cpp"
    "tsymbedjigex.cpp"
    "tthunderinsertpreviewjig.cpp"
    "tthundersectionjig.cpp"
    "tviewportthunders.cpp"
    "uiiinplacecombobox.cpp"
    "uiiinplaceedit.cpp"
    "uiilistctrl.cpp"
    "ThunderProof.rc"
    # ThunderProof.def
    )
add_def_file_name(SOURCES "ThunderProof")

add_library(ThunderProof SHARED ${SOURCES})
target_include_directories(ThunderProof PRIVATE "${CMAKE_SOURCE_DIR}/inc/AdsXRx")
target_precompile_headers(ThunderProof PRIVATE StdAfx.h)
target_link_objectarx(ThunderProof GRID_EXPORT)
target_link_libraries(ThunderProof PRIVATE AdsXRx)
target_set_name_and_suffix(ThunderProof "ThunderProof" ".arx")
set_debug_post_build(ThunderProof "ThunderProof" ".arx")