mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Scope compiler defines and remove forced 7zip NDEBUG
This commit is contained in:
@ -31,6 +31,7 @@ target_include_directories(library_common PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/db
|
||||
)
|
||||
yacreader_apply_build_options(library_common)
|
||||
target_link_libraries(library_common PUBLIC
|
||||
Qt6::Core
|
||||
Qt6::Core5Compat
|
||||
@ -62,6 +63,7 @@ target_include_directories(db_helper PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/db
|
||||
)
|
||||
yacreader_apply_build_options(db_helper)
|
||||
target_link_libraries(db_helper PUBLIC
|
||||
Qt6::Core
|
||||
Qt6::Sql
|
||||
@ -179,6 +181,7 @@ qt_add_executable(YACReaderLibrary WIN32
|
||||
${PROJECT_SOURCE_DIR}/common/themes/theme_manager.h
|
||||
${PROJECT_SOURCE_DIR}/common/themes/theme_manager.cpp
|
||||
)
|
||||
yacreader_apply_build_options(YACReaderLibrary)
|
||||
|
||||
# macOS-specific sources
|
||||
if(APPLE)
|
||||
|
||||
@ -54,6 +54,7 @@ target_include_directories(comic_vine PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/model
|
||||
)
|
||||
yacreader_apply_build_options(comic_vine)
|
||||
# App-specific theme.h needed for themable.h → theme_manager.h → theme.h chain
|
||||
target_include_directories(comic_vine PRIVATE
|
||||
${PROJECT_SOURCE_DIR}/YACReaderLibrary/themes
|
||||
|
||||
@ -67,6 +67,7 @@ target_include_directories(server PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/controllers
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/controllers/v2
|
||||
)
|
||||
yacreader_apply_build_options(server)
|
||||
target_compile_definitions(server PUBLIC SERVER_VERSION_NUMBER="2.1")
|
||||
if(UNIX AND NOT APPLE)
|
||||
target_compile_definitions(server PRIVATE
|
||||
|
||||
Reference in New Issue
Block a user