CMake: Allow external libE57Format
This commit is contained in:
committed by
Benjamin Nauck
parent
03dd780ef3
commit
b3d8020e77
@@ -14,10 +14,18 @@ target_include_directories(
|
||||
SYSTEM
|
||||
PUBLIC
|
||||
${EIGEN3_INCLUDE_DIR}
|
||||
${CMAKE_BINARY_DIR}/src/3rdParty/libE57Format
|
||||
${CMAKE_SOURCE_DIR}/src/3rdParty/libE57Format/include
|
||||
)
|
||||
|
||||
if (NOT FREECAD_USE_EXTERNAL_E57FORMAT)
|
||||
target_include_directories(
|
||||
Points
|
||||
SYSTEM
|
||||
PUBLIC
|
||||
${CMAKE_BINARY_DIR}/src/3rdParty/libE57Format
|
||||
${CMAKE_SOURCE_DIR}/src/3rdParty/libE57Format/include
|
||||
)
|
||||
endif()
|
||||
|
||||
set(Points_LIBS
|
||||
FreeCADApp
|
||||
)
|
||||
@@ -67,7 +75,10 @@ if(FREECAD_USE_PCH)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
target_sources(Points PRIVATE ${Points_SRCS} ${Points_Scripts})
|
||||
link_directories(${CMAKE_BINARY_DIR}/src/3rdParty/libE57Format)
|
||||
|
||||
if (NOT FREECAD_USE_EXTERNAL_E57FORMAT)
|
||||
link_directories(${CMAKE_BINARY_DIR}/src/3rdParty/libE57Format)
|
||||
endif()
|
||||
|
||||
target_link_libraries(Points E57Format ${Points_LIBS})
|
||||
if (FREECAD_WARN_ERROR)
|
||||
|
||||
Reference in New Issue
Block a user