1 2 3list(APPEND SOURCE 4 cardbitmaps.cpp 5 cardbutton.cpp 6 cardcolor.cpp 7 cardcount.cpp 8 cardlib.cpp 9 cardregion.cpp 10 cardrgndraw.cpp 11 cardrgnmouse.cpp 12 cardstack.cpp 13 cardwindow.cpp 14 dropzone.cpp 15 cardlib.h) 16 17add_library(cardlib STATIC ${SOURCE}) 18target_link_libraries(cardlib PRIVATE cpprt) 19target_include_directories(cardlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) 20 21if(NOT MSVC) 22 target_compile_options(cardlib PRIVATE "-Wno-unused-but-set-variable") 23endif() 24 25add_dependencies(cardlib psdk) 26add_pch(cardlib cardlib.h SOURCE) 27