diff --git a/CMakeLists.txt b/CMakeLists.txt index 716c6cf0..88b61fbe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -331,8 +331,9 @@ IF (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") ENDIF () IF (MSVC) - # Set /bigobj to allow building Debug tests + # Set /bigobj to allow building Debug and RelWithDebInfo tests set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj") + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /bigobj") # Update compiler flags. IF (MSVC_STATIC_RUNTIME) @@ -421,6 +422,13 @@ add_custom_command(TARGET loot_api_tests POST_BUILD install(TARGETS loot_api DESTINATION ".") +IF (MSVC) + install(FILES $ + DESTINATION . + OPTIONAL + CONFIGURATIONS RelWithDebInfo) +ENDIF () + install(DIRECTORY "${CMAKE_SOURCE_DIR}/include" DESTINATION ".") diff --git a/appveyor.yml b/appveyor.yml index e910cf61..bd9f95d4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,7 +2,7 @@ os: Visual Studio 2015 version: "{build}-{branch}" -configuration: Release +configuration: RelWithDebInfo platform: - Win32 @@ -55,7 +55,7 @@ after_test: - C:\Python27\Scripts\sphinx-build -b html docs build\docs\html - ps: $env:GIT_DESCRIBE = ((git describe --tags --long --always --abbrev=7) | Out-String) -replace "`n|`r", "" - cd build - - cpack + - cpack -C %CONFIGURATION% artifacts: - path: build\package\loot_api-$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH)-win$(ADDRESS_MODEL).7z