diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f1487400..4c25f97fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,6 +124,13 @@ endif() # GPSTk shared-object library (e.g. libgpstk.so) build target add_library( gpstk ${STADYN} ${GPSTK_SRC_FILES} ${GPSTK_INC_FILES} ) +if (WIN32) #Windows Linker Options + if (MINGW) + target_link_libraries(gpstk regex) + endif() +endif() + + # GPSTk library install target install( TARGETS gpstk DESTINATION "${CMAKE_INSTALL_LIBDIR}" EXPORT "${EXPORT_TARGETS_FILENAME}" )