An attempt at CPACK, not going great.

This commit is contained in:
Linus Probert 2018-02-22 23:19:33 +01:00
parent ba9a92208d
commit 7f449e7ef3
16 changed files with 48 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/build/ /build/
/*.dll
/tags /tags
/assets.pack /assets.pack
/.vs/ /.vs/

View File

@ -149,3 +149,50 @@ if (NOT CMAKE_BUILD_TYPE MATCHES Debug)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/assets WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/assets
) )
endif (NOT CMAKE_BUILD_TYPE MATCHES Debug) 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)

BIN
bin/SDL2.dll Normal file

Binary file not shown.

BIN
bin/SDL2_image.dll Normal file

Binary file not shown.

BIN
bin/SDL2_mixer.dll Normal file

Binary file not shown.

BIN
bin/SDL2_ttf.dll Normal file

Binary file not shown.

BIN
bin/libFLAC-8.dll Normal file

Binary file not shown.

BIN
bin/libfreetype-6.dll Normal file

Binary file not shown.

BIN
bin/libmodplug-1.dll Normal file

Binary file not shown.

BIN
bin/libmpg123-0.dll Normal file

Binary file not shown.

BIN
bin/libogg-0.dll Normal file

Binary file not shown.

BIN
bin/libpng16-16.dll Normal file

Binary file not shown.

BIN
bin/libvorbis-0.dll Normal file

Binary file not shown.

BIN
bin/libvorbisfile-3.dll Normal file

Binary file not shown.

BIN
bin/physfs.dll Normal file

Binary file not shown.

BIN
bin/zlib1.dll Normal file

Binary file not shown.