diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f4aa71..94edd95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,9 +201,16 @@ endif() if(NANODBC_INSTALL) install(FILES src/nanodbc.h DESTINATION include) if(NANODBC_STATIC) - install(TARGETS nanodbc ARCHIVE DESTINATION lib) + install( + TARGETS nanodbc + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib) else() - install(TARGETS nanodbc LIBRARY DESTINATION lib) + install( + TARGETS nanodbc + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib + RUNTIME DESTINATION bin) endif() message(STATUS "Target install: Turned on") else()