--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,7 +77,7 @@
 	add_compile_options(${GCC_CLANG_COMPILE_FLAGS})
 endif()
 
-add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES})
+add_library(${PROJECT_NAME} ${SOURCE_FILES})
 target_link_libraries(${PROJECT_NAME} FastFloat::fast_float)
 target_include_directories(${PROJECT_NAME} PUBLIC
 	$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
@@ -93,11 +93,14 @@
 						COMMAND ${CMAKE_SOURCE_DIR}/scripts/create_single_header.sh
 	)
 endif()
+
+include(GNUInstallDirs)
 
 ## Installation
 # install lib
 install(TARGETS ${PROJECT_NAME}
-		DESTINATION ${CMAKE_INSTALL_LIBDIR})
+		RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+		ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
 
 # install headers
 install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/libdbc DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
