set(TARGET_NAME "common") set(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 svrblist.cpp svrblist.h textprocessing.cpp textprocessing.h timers.cpp timers.h uuid.cpp uuid.h) if(WIN32) list(APPEND ${FILE_LIST} win32ssl.cpp win32ssl.h) endif() add_library(${TARGET_NAME} ${FILE_LIST})