CMake: Cleanup targets with transitive dependencies
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
add_library(Points SHARED)
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DFCAppPoints)
|
||||
endif(WIN32)
|
||||
@@ -7,15 +9,11 @@ include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
include_directories(
|
||||
target_include_directories(
|
||||
Points
|
||||
SYSTEM
|
||||
${Boost_INCLUDE_DIRS}
|
||||
PUBLIC
|
||||
${EIGEN3_INCLUDE_DIR}
|
||||
${PYCXX_INCLUDE_DIR}
|
||||
${Python3_INCLUDE_DIRS}
|
||||
${XercesC_INCLUDE_DIRS}
|
||||
${ZIPIOS_INCLUDES}
|
||||
${ZLIB_INCLUDE_DIR}
|
||||
${CMAKE_BINARY_DIR}/src/3rdParty/libE57Format
|
||||
${CMAKE_SOURCE_DIR}/src/3rdParty/libE57Format/include
|
||||
)
|
||||
@@ -68,8 +66,7 @@ if(FREECAD_USE_PCH)
|
||||
ADD_MSVC_PRECOMPILED_HEADER(Points PreCompiled.h PreCompiled.cpp PCH_SRCS)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
add_library(Points SHARED ${Points_SRCS} ${Points_Scripts})
|
||||
|
||||
target_sources(Points PRIVATE ${Points_SRCS} ${Points_Scripts})
|
||||
link_directories(${CMAKE_BINARY_DIR}/src/3rdParty/libE57Format)
|
||||
|
||||
target_link_libraries(Points E57Format ${Points_LIBS})
|
||||
|
||||
@@ -2,18 +2,6 @@ include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
include_directories(
|
||||
SYSTEM
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${COIN3D_INCLUDE_DIRS}
|
||||
${EIGEN3_INCLUDE_DIR}
|
||||
${PYCXX_INCLUDE_DIR}
|
||||
${Python3_INCLUDE_DIRS}
|
||||
${ZIPIOS_INCLUDES}
|
||||
${ZLIB_INCLUDE_DIR}
|
||||
${XercesC_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
set(PointsGui_LIBS
|
||||
Points
|
||||
FreeCADGui
|
||||
|
||||
Reference in New Issue
Block a user