--- /dev/null
+cmake_minimum_required(VERSION 3.8)\r
+project(libmodpbase64 C)\r
+\r
+if(MSVC)\r
+ add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)\r
+endif()\r
+\r
+configure_file(config.h.cmake config.h @ONLY)\r
+\r
+include_directories(. ${SOURCE_PATH}/src ${CMAKE_CURRENT_BINARY_DIR})\r
+\r
+add_library(libmodpbase64 ${SOURCE_PATH}/src/modp_b64.c libmodpbase64.def)\r
+\r
+install(\r
+ TARGETS libmodpbase64\r
+ RUNTIME DESTINATION bin\r
+ LIBRARY DESTINATION lib\r
+ ARCHIVE DESTINATION lib\r
+)\r
+\r
+if(NOT DISABLE_INSTALL_HEADERS)\r
+ install(\r
+ FILES ${SOURCE_PATH}/src/modp_b64.h\r
+ DESTINATION include\r
+ )\r
+endif()\r