Files
create/src/Mod/Draft/App/CMakeLists.txt
Benjamin Bræstrup Sayoc ee1c73cd04 Build: suppress warnings from 3rd party libraries
Warnings from 3rd parties are not relevant and are only polluting the warning output. Marking these libraries as SYSTEM suppresses warning.

https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#index-I
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
2025-02-25 14:39:05 +00:00

48 lines
942 B
CMake

if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif(MSVC)
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
)
include_directories(
SYSTEM
${Boost_INCLUDE_DIRS}
${OCC_INCLUDE_DIR}
${PYCXX_INCLUDE_DIR}
${Python3_INCLUDE_DIRS}
${XercesC_INCLUDE_DIRS}
${QT_QTCORE_INCLUDE_DIR}
${ZLIB_INCLUDE_DIR}
)
link_directories(${OCC_LIBRARY_DIR})
set(DraftUtils_LIBS
Part
FreeCADApp
)
SET(DraftUtils_SRCS
AppDraftUtils.cpp
AppDraftUtilsPy.cpp
PreCompiled.cpp
PreCompiled.h
)
add_library(DraftUtils SHARED ${DraftUtils_SRCS})
target_link_libraries(DraftUtils ${DraftUtils_LIBS})
if (FREECAD_WARN_ERROR)
target_compile_warn_error(DraftUtils)
endif()
SET_BIN_DIR(DraftUtils DraftUtils /Mod/Draft)
SET_PYTHON_PREFIX_SUFFIX(DraftUtils)
INSTALL(TARGETS DraftUtils DESTINATION ${CMAKE_INSTALL_LIBDIR})