+ compile with clang
This commit is contained in:
@@ -3,46 +3,47 @@ if(MSVC)
|
||||
else(MSVC)
|
||||
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
|
||||
endif(MSVC)
|
||||
|
||||
include_directories(
|
||||
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${OCC_INCLUDE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${OCC_INCLUDE_DIR}
|
||||
${QT_QTCORE_INCLUDE_DIR}
|
||||
${PYTHON_INCLUDE_PATH}
|
||||
${ZLIB_INCLUDE_DIR}
|
||||
${XERCESC_INCLUDE_DIR}
|
||||
)
|
||||
${PYTHON_INCLUDE_PATH}
|
||||
${ZLIB_INCLUDE_DIR}
|
||||
${XERCESC_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
link_directories(${OCC_LIBRARY_DIR})
|
||||
|
||||
set(Inspection_LIBS
|
||||
FreeCADApp
|
||||
Mesh
|
||||
Points
|
||||
Part
|
||||
)
|
||||
|
||||
SET(Inspection_SRCS
|
||||
AppInspection.cpp
|
||||
AppInspectionPy.cpp
|
||||
InspectionFeature.cpp
|
||||
InspectionFeature.h
|
||||
PreCompiled.cpp
|
||||
PreCompiled.h
|
||||
)
|
||||
|
||||
add_library(Inspection SHARED ${Inspection_SRCS})
|
||||
target_link_libraries(Inspection ${Inspection_LIBS})
|
||||
|
||||
|
||||
fc_target_copy_resource(Inspection
|
||||
${CMAKE_SOURCE_DIR}/src/Mod/Inspection
|
||||
${CMAKE_BINARY_DIR}/Mod/Inspection
|
||||
Init.py)
|
||||
|
||||
set(Inspection_LIBS
|
||||
FreeCADApp
|
||||
Mesh
|
||||
Points
|
||||
Part
|
||||
)
|
||||
|
||||
SET(Inspection_SRCS
|
||||
AppInspection.cpp
|
||||
AppInspectionPy.cpp
|
||||
InspectionFeature.cpp
|
||||
InspectionFeature.h
|
||||
PreCompiled.cpp
|
||||
PreCompiled.h
|
||||
)
|
||||
|
||||
add_library(Inspection SHARED ${Inspection_SRCS})
|
||||
target_link_libraries(Inspection ${Inspection_LIBS})
|
||||
|
||||
|
||||
fc_target_copy_resource(Inspection
|
||||
${CMAKE_SOURCE_DIR}/src/Mod/Inspection
|
||||
${CMAKE_BINARY_DIR}/Mod/Inspection
|
||||
Init.py)
|
||||
|
||||
SET_BIN_DIR(Inspection Inspection /Mod/Inspection)
|
||||
SET_PYTHON_PREFIX_SUFFIX(Inspection)
|
||||
SET_PYTHON_PREFIX_SUFFIX(Inspection)
|
||||
|
||||
INSTALL(TARGETS Inspection DESTINATION lib)
|
||||
|
||||
Reference in New Issue
Block a user