Some new msvc build rules. Not tested
This commit is contained in:
parent
94e7857dc7
commit
8ce5200601
|
@ -173,8 +173,12 @@ if (NOT CMAKE_BUILD_TYPE MATCHES Debug)
|
||||||
)
|
)
|
||||||
endif (NOT CMAKE_BUILD_TYPE MATCHES Debug)
|
endif (NOT CMAKE_BUILD_TYPE MATCHES Debug)
|
||||||
|
|
||||||
if (WIN32)
|
SET(CMAKE_INSTALL_OPENMP_LIBRARIES TRUE)
|
||||||
set(DLL_FILES
|
SET(CMAKE_INSTALL_DEBUG_LIBRARIES TRUE)
|
||||||
|
SET(CMAKE_INSTALL_UCRT_LIBRARIES TRUE)
|
||||||
|
SET(CMAKE_INSTALL_MFC_LIBRARIES TRUE)
|
||||||
|
SET(CMAKE_INSTALL_OPENMP_LIBRARIES TRUE)
|
||||||
|
SET(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
|
||||||
${CMAKE_SOURCE_DIR}/bin/libFLAC-8.dll
|
${CMAKE_SOURCE_DIR}/bin/libFLAC-8.dll
|
||||||
${CMAKE_SOURCE_DIR}/bin/libfreetype-6.dll
|
${CMAKE_SOURCE_DIR}/bin/libfreetype-6.dll
|
||||||
${CMAKE_SOURCE_DIR}/bin/libmodplug-1.dll
|
${CMAKE_SOURCE_DIR}/bin/libmodplug-1.dll
|
||||||
|
@ -191,10 +195,9 @@ if (WIN32)
|
||||||
${CMAKE_SOURCE_DIR}/bin/ucrtbased.dll
|
${CMAKE_SOURCE_DIR}/bin/ucrtbased.dll
|
||||||
${CMAKE_SOURCE_DIR}/bin/zlib1.dll
|
${CMAKE_SOURCE_DIR}/bin/zlib1.dll
|
||||||
${CMAKE_SOURCE_DIR}/bin/vcruntime140d.dll
|
${CMAKE_SOURCE_DIR}/bin/vcruntime140d.dll
|
||||||
)
|
)
|
||||||
endif (WIN32)
|
|
||||||
|
|
||||||
include(InstallRequiredSystemLibraries)
|
include(InstallRequiredSystemLibraries)
|
||||||
|
|
||||||
INSTALL(TARGETS breakhack
|
INSTALL(TARGETS breakhack
|
||||||
COMPONENT Release
|
COMPONENT Release
|
||||||
RUNTIME DESTINATION .
|
RUNTIME DESTINATION .
|
||||||
|
@ -203,12 +206,6 @@ INSTALL(FILES assets.pack data.pack
|
||||||
COMPONENT Release
|
COMPONENT Release
|
||||||
DESTINATION .
|
DESTINATION .
|
||||||
)
|
)
|
||||||
if (WIN32)
|
|
||||||
INSTALL(FILES ${DLL_FILES}
|
|
||||||
COMPONENT Release
|
|
||||||
DESTINATION .
|
|
||||||
)
|
|
||||||
endif (WIN32)
|
|
||||||
|
|
||||||
set(CPACK_INSTALL_CMAKE_PROJECTS "${PROJECT_BINARY_DIR};breakhack;Release;.")
|
set(CPACK_INSTALL_CMAKE_PROJECTS "${PROJECT_BINARY_DIR};breakhack;Release;.")
|
||||||
set(CPACK_PACKAGE_NAME "BreakHack")
|
set(CPACK_PACKAGE_NAME "BreakHack")
|
||||||
|
|
Loading…
Reference in New Issue