set(TARGET_NAME "common") list(APPEND FILE_LIST base64.cpp base64.h CMakeLists.txt defaults.cpp defaults.h dirs.cpp dirs.h etag.cpp etag.h events.cpp events.h filename.cpp filename.h getcontactinfo.cpp getcontactinfo.h languages.cpp languages.h mime.cpp mime.h preferences.cpp preferences.h sslcertstructs.h structs.h svrdlist.cpp svrdlist.h textprocessing.cpp textprocessing.h timers.cpp timers.h uuid.cpp uuid.h) if(MSVC) list(APPEND FILE_LIST win32ssl.cpp win32ssl.h) endif() add_library(${TARGET_NAME} ${FILE_LIST})