40 lines
718 B
CMake
40 lines
718 B
CMake
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
set(KCSDK_SRCS
|
|
KCSDKGlobal.h
|
|
Types.h
|
|
IPanelProvider.h
|
|
IToolbarProvider.h
|
|
WidgetBridge.h
|
|
WidgetBridge.cpp
|
|
ThemeEngine.h
|
|
ThemeEngine.cpp
|
|
SDKRegistry.h
|
|
SDKRegistry.cpp
|
|
)
|
|
|
|
add_library(KCSDK SHARED ${KCSDK_SRCS})
|
|
|
|
target_include_directories(KCSDK
|
|
PUBLIC
|
|
${CMAKE_SOURCE_DIR}/src
|
|
${CMAKE_BINARY_DIR}/src
|
|
)
|
|
|
|
target_link_libraries(KCSDK
|
|
PRIVATE
|
|
FreeCADBase
|
|
FreeCADGui
|
|
)
|
|
|
|
if(FREECAD_WARN_ERROR)
|
|
target_compile_warn_error(KCSDK)
|
|
endif()
|
|
|
|
SET_BIN_DIR(KCSDK KCSDK /Mod/Create)
|
|
INSTALL(TARGETS KCSDK DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
if(FREECAD_USE_PYBIND11)
|
|
add_subdirectory(bindings)
|
|
endif()
|