diff --git a/.gitignore b/.gitignore index 47251a0..787b720 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /build/ +/*.dll /tags /assets.pack /.vs/ diff --git a/CMakeLists.txt b/CMakeLists.txt index e93beb5..e698853 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,3 +149,50 @@ if (NOT CMAKE_BUILD_TYPE MATCHES Debug) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/assets ) endif (NOT CMAKE_BUILD_TYPE MATCHES Debug) + +if (WIN32) + set(DLL_FILES + ${CMAKE_SOURCE_DIR}/bin/libFLAC-8.dll + ${CMAKE_SOURCE_DIR}/bin/libfreetype-6.dll + ${CMAKE_SOURCE_DIR}/bin/libmodplug-1.dll + ${CMAKE_SOURCE_DIR}/bin/libmpg123-0.dll + ${CMAKE_SOURCE_DIR}/bin/libogg-0.dll + ${CMAKE_SOURCE_DIR}/bin/libpng16-16.dll + ${CMAKE_SOURCE_DIR}/bin/libvorbis-0.dll + ${CMAKE_SOURCE_DIR}/bin/libvorbisfile-3.dll + ${CMAKE_SOURCE_DIR}/bin/physfs.dll + ${CMAKE_SOURCE_DIR}/bin/SDL2.dll + ${CMAKE_SOURCE_DIR}/bin/SDL2_image.dll + ${CMAKE_SOURCE_DIR}/bin/SDL2_mixer.dll + ${CMAKE_SOURCE_DIR}/bin/SDL2_ttf.dll + ${CMAKE_SOURCE_DIR}/bin/zlib1.dll + ) +endif (WIN32) + +install(TARGETS breakhack + COMPONENT Release + RUNTIME DESTINATION bin +) +install(FILES assets.pack + COMPONENT Release + DESTINATION bin +) +install(DIRECTORY data + COMPONENT Release + DESTINATION bin +) +if (WIN32) + install(FILES ${DLL_FILES} DESTINATION bin) +endif (WIN32) + +set(CPACK_INSTALL_CMAKE_PROJECTS ${PROJECT_BINARY_DIR} breakhack Release package) +set(CPACK_PACKAGE_NAME "BreakHack") +set(CPACK_PACKAGE_VENDOR "OliveShark") +set(CPACK_PACKAGE_DIRECTORY "package") +set(CPACK_PACKAGE_VERSION_MAJOR "0") +set(CPACK_PACKAGE_VERSION_MINOR "1") +set(CPACK_PACKAGE_VERSION_PATCH "1") +set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") +set(CPACK_PACKAGE_CHECKSUM "MD5") +set(CPACK_PACKAGE_EXECUTABLES breakhack) +include(cpack) \ No newline at end of file diff --git a/bin/SDL2.dll b/bin/SDL2.dll new file mode 100644 index 0000000..c21f747 Binary files /dev/null and b/bin/SDL2.dll differ diff --git a/bin/SDL2_image.dll b/bin/SDL2_image.dll new file mode 100644 index 0000000..cadd2c5 Binary files /dev/null and b/bin/SDL2_image.dll differ diff --git a/bin/SDL2_mixer.dll b/bin/SDL2_mixer.dll new file mode 100644 index 0000000..54ebbb1 Binary files /dev/null and b/bin/SDL2_mixer.dll differ diff --git a/bin/SDL2_ttf.dll b/bin/SDL2_ttf.dll new file mode 100644 index 0000000..2d8929e Binary files /dev/null and b/bin/SDL2_ttf.dll differ diff --git a/bin/libFLAC-8.dll b/bin/libFLAC-8.dll new file mode 100644 index 0000000..1c55ad4 Binary files /dev/null and b/bin/libFLAC-8.dll differ diff --git a/bin/libfreetype-6.dll b/bin/libfreetype-6.dll new file mode 100644 index 0000000..6b19b3c Binary files /dev/null and b/bin/libfreetype-6.dll differ diff --git a/bin/libmodplug-1.dll b/bin/libmodplug-1.dll new file mode 100644 index 0000000..a2cba0d Binary files /dev/null and b/bin/libmodplug-1.dll differ diff --git a/bin/libmpg123-0.dll b/bin/libmpg123-0.dll new file mode 100644 index 0000000..ca7de30 Binary files /dev/null and b/bin/libmpg123-0.dll differ diff --git a/bin/libogg-0.dll b/bin/libogg-0.dll new file mode 100644 index 0000000..3abe6eb Binary files /dev/null and b/bin/libogg-0.dll differ diff --git a/bin/libpng16-16.dll b/bin/libpng16-16.dll new file mode 100644 index 0000000..d59e67e Binary files /dev/null and b/bin/libpng16-16.dll differ diff --git a/bin/libvorbis-0.dll b/bin/libvorbis-0.dll new file mode 100644 index 0000000..4e44ef0 Binary files /dev/null and b/bin/libvorbis-0.dll differ diff --git a/bin/libvorbisfile-3.dll b/bin/libvorbisfile-3.dll new file mode 100644 index 0000000..e757eb6 Binary files /dev/null and b/bin/libvorbisfile-3.dll differ diff --git a/bin/physfs.dll b/bin/physfs.dll new file mode 100644 index 0000000..a969150 Binary files /dev/null and b/bin/physfs.dll differ diff --git a/bin/zlib1.dll b/bin/zlib1.dll new file mode 100644 index 0000000..1aa57ce Binary files /dev/null and b/bin/zlib1.dll differ