CMake: Improve Import dependency check for TechDraw module. (#19036)
* CMake: Fix missing Import dependency check for TechDraw module. * CMake/TechDraw: Conditionally use Import library. * CMake: Fix missing dependency check for Module and PartDesign measure in TechDraw.
This commit is contained in:
@@ -37,5 +37,5 @@ macro(CheckInterModuleDependencies)
|
||||
REQUIRES_MODS(BUILD_SANDBOX BUILD_PART BUILD_MESH)
|
||||
REQUIRES_MODS(BUILD_SKETCHER BUILD_PART)
|
||||
REQUIRES_MODS(BUILD_SPREADSHEET BUILD_DRAFT)
|
||||
REQUIRES_MODS(BUILD_TECHDRAW BUILD_PART BUILD_SPREADSHEET)
|
||||
REQUIRES_MODS(BUILD_TECHDRAW BUILD_PART BUILD_PART_DESIGN BUILD_SPREADSHEET BUILD_MEASURE BUILD_IMPORT)
|
||||
endmacro(CheckInterModuleDependencies)
|
||||
|
||||
@@ -16,10 +16,13 @@ set(TechDrawLIBS
|
||||
Measure
|
||||
Part
|
||||
Spreadsheet
|
||||
Import
|
||||
PartDesign
|
||||
)
|
||||
|
||||
if (BUILD_IMPORT)
|
||||
list(APPEND TechDrawLIBS Import)
|
||||
endif ()
|
||||
|
||||
include_directories(
|
||||
${QtConcurrent_INCLUDE_DIRS}
|
||||
${QtCore_INCLUDE_DIR}
|
||||
|
||||
Reference in New Issue
Block a user