﻿set(PACKAGE_NAME "common_static")

project(${PACKAGE_NAME})

add_library(
  ${PACKAGE_NAME}
  STATIC
  asprintf.cpp
  asprintf.h
  codeconv.cpp
  codeconv.h
  compat_win.cpp
  compat_win.h
  comportinfo.cpp
  comportinfo.h
  dlglib.c
  dlglib.h
  dlglib_cpp.cpp
  dlglib_tmpl.cpp
  dllutil.cpp
  dllutil.h
  fileread.cpp
  fileread.h
  getcontent.cpp
  getcontent.h
  i18n.h
  i18n_static.c
  inifile_com.cpp
  inifile_com.h
  tipwin.cpp
  tipwin.h
  tipwin2.cpp
  tipwin2.h
  tmfc.cpp
  tmfc.h
  tmfc_frame.cpp
  tmfc_propdlg.cpp
  tmfc_propdlg.h
  tmfc_property.cpp
  ttcommdlg.cpp
  ttcommdlg.h
  ttgdiplus.cpp
  ttgdiplus.h
  ttknownfolders.c
  ttknownfolders.h
  ttlib.h
  ttlib_charset.cpp
  ttlib_charset.h
  ttlib_static.c
  ttlib_static_cpp.cpp
  ttlib_static_dir.cpp
  ttlib_static_dir.h
  win32helper.cpp
  win32helper.h
  )

target_include_directories(
  ${PACKAGE_NAME}
  PUBLIC
  ${CMAKE_CURRENT_BINARY_DIR}       # for svnversion.h
  .
)

target_link_libraries(
  ${PACKAGE_NAME}
  PUBLIC
  #
  setupapi
  )
