diff --git a/CMakeLists.txt b/CMakeLists.txt index 85ef0f3..2e9d2d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,12 +128,20 @@ add_custom_command(TARGET loot_api POST_BUILD install(TARGETS loot_api DESTINATION "." - CONFIGURATIONS Release) + CONFIGURATIONS Release RelWithDebInfo) install(FILES "${LOOT_API_EXTRACTED_PATH}/${LOOT_API_SHARED_LIBRARY}" "${CMAKE_SOURCE_DIR}/docs/README.md" DESTINATION "." - CONFIGURATIONS Release) + CONFIGURATIONS Release RelWithDebInfo) + +IF (MSVC) + install(FILES $ + DESTINATION . + OPTIONAL + CONFIGURATIONS RelWithDebInfo + RENAME loot_api_python.pdb) +ENDIF () ######################################## # CPack diff --git a/appveyor.yml b/appveyor.yml index e58a744..c5ced6d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,7 +2,7 @@ os: Visual Studio 2015 version: "{build}-{branch}" -configuration: Release +configuration: RelWithDebInfo environment: bintray_auth_token: @@ -22,12 +22,12 @@ build: project: 'c:\projects\loot-api-python\build\loot_api_python.sln' test_script: - - cd %APPVEYOR_BUILD_FOLDER%\build\Release + - cd %APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION% - python -m unittest test after_test: - cd %APPVEYOR_BUILD_FOLDER%\build - - cpack + - cpack -C %CONFIGURATION% # AppVeyor checks out a specific commit, but that means the archive script # can't tell which branch it's on, so rename the 7z archives. - ps: $env:GIT_DESCRIBE = ((git describe --tags --long --always) | Out-String) -replace "`n|`r", ""