2016-01-15 16:11:10 +00:00
|
|
|
FILE(GLOB SRCS *.cpp)
|
|
|
|
FILE(GLOB HDRS *.h)
|
|
|
|
IF (WIN32)
|
|
|
|
FILE(GLOB RSRC *.rc)
|
|
|
|
ENDIF (WIN32)
|
|
|
|
FILE(GLOB RESOURCES *.qrc)
|
|
|
|
|
|
|
|
SOURCE_GROUP("" FILES ${SRCS} ${HDRS} ${RSRC} ${RESOURCES})
|
|
|
|
|
|
|
|
SET(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
QT5_ADD_RESOURCES(RESOURCE_ADDED ${RESOURCES})
|
|
|
|
|
|
|
|
NL_TARGET_LIB(shared_widgets ${SRCS} ${HDRS} ${RSRC} ${RESOURCE_ADDED})
|
|
|
|
|
2016-01-17 12:23:25 +00:00
|
|
|
IF(QT_STATIC)
|
|
|
|
SET(SHARED_WIDGETS_QT_LIBRARIES ${QT_LIBRARIES})
|
|
|
|
ELSE()
|
|
|
|
SET(SHARED_WIDGETS_QT_LIBRARIES Qt5::Widgets)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(shared_widgets nelmisc nel3d ${SHARED_WIDGETS_QT_LIBRARIES})
|
2016-01-15 16:11:10 +00:00
|
|
|
NL_DEFAULT_PROPS(shared_widgets "NeL, Tools, 3D: Shared Widgets")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(shared_widgets)
|
|
|
|
|
|
|
|
IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
|
|
|
INSTALL(TARGETS shared_widgets LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT tools3d)
|
|
|
|
ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|