include_directories(${CMAKE_SOURCE_DIR}/src/boost/)
include_directories(${CMAKE_SOURCE_DIR}/src)


set(SRCS
  boost/date_time/posix_time/posix_time_types.cpp
  boost/date_time/gregorian/date_generators.cpp
  boost/date_time/gregorian/greg_month.cpp
  boost/date_time/gregorian/greg_weekday.cpp
  boost/date_time/gregorian/gregorian_types.cpp
  MKeyFile.cpp)

add_executable(lfstimer main.cpp ${SRCS})
include_directories(${CMAKE_SOURCE_DIR}/lib)
include_directories(${CMAKE_SOURCE_DIR}/src)

if(UNIX)
  set (LFSTIMER_ADDITIONAL_LIBS pthread)
endif()

target_link_libraries(lfstimer cinsim ${LFSTIMER_ADDITIONAL_LIBS})

if(WIN32)
  #target_link_libraries(lfstimer ${CMAKE_SOURCE_DIR}/win32-stuff/libpthreadGC2.a)
#  target_link_libraries(lfstimer pthreadGC2)
  set(CMAKE_USE_WIN32_THREADS ON)
endif()

#target_link_libraries(lfstimer pthreadGC2)