mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Merge branch 'fix/sonar-cmake' into staged
This commit is contained in:
commit
58a0bc74af
4
.github/workflows/cmake build test.yml
vendored
4
.github/workflows/cmake build test.yml
vendored
|
@ -76,8 +76,8 @@ jobs:
|
|||
|
||||
- name: Run build-wrapper
|
||||
run: |
|
||||
cmake . -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build .
|
||||
cmake -S . -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build . --config Release
|
||||
job3:
|
||||
name: macos Build and analyze
|
||||
runs-on: macos-12
|
||||
|
|
|
@ -12,7 +12,11 @@ if(UNIX AND NOT APPLE)
|
|||
endif()
|
||||
|
||||
if (APPLE)
|
||||
if(WITH_EPWING_SUPPORT)
|
||||
add_subdirectory(thirdparty/eb)
|
||||
endif()
|
||||
|
||||
include_directories(/usr/local/include /opt/homebrew/include)
|
||||
endif ()
|
||||
|
||||
project(goldendict
|
||||
|
@ -477,6 +481,9 @@ if(MSVC)
|
|||
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/winlibs/include/
|
||||
)
|
||||
|
||||
set_property(TARGET ${CMAKE_PROJECT_NAME} PROPERTY
|
||||
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
|
||||
endif()
|
||||
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
|
||||
|
@ -491,7 +498,9 @@ target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
|
|||
)
|
||||
|
||||
if(APPLE)
|
||||
if(WITH_EPWING_SUPPORT)
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE eb)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
|
|
Loading…
Reference in a new issue