mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-11 12:24:47 +00:00
42 lines
959 B
Text
42 lines
959 B
Text
|
|
||
|
FILE(GLOB SRCS *.cpp)
|
||
|
FILE(GLOB HDRS *.h)
|
||
|
IF (WIN32)
|
||
|
FILE(GLOB RSRC *.rc)
|
||
|
ENDIF (WIN32)
|
||
|
FILE(GLOB RESOURCES *.qrc)
|
||
|
|
||
|
FILE(GLOB PANOPLY_MAKER ../panoply_maker/color_modifier.cpp ../panoply_maker/color_modifier.h)
|
||
|
|
||
|
SOURCE_GROUP("" FILES ${SRCS} ${HDRS} ${RSRC} ${RESOURCES})
|
||
|
SOURCE_GROUP("panoply_maker" FILES ${PANOPLY_MAKER})
|
||
|
|
||
|
SET(CMAKE_AUTOMOC ON)
|
||
|
|
||
|
QT5_ADD_RESOURCES(RESOURCE_ADDED ${RESOURCES})
|
||
|
|
||
|
ADD_EXECUTABLE(nl_panoply_preview WIN32 ${SRC}
|
||
|
${SRCS}
|
||
|
${HDRS}
|
||
|
${RSRC}
|
||
|
${RESOURCE_ADDED}
|
||
|
${PANOPLY_MAKER}
|
||
|
)
|
||
|
|
||
|
IF(QT_STATIC)
|
||
|
SET(PANOPLY_PREVIEW_QT_LIBRARIES ${QT_LIBRARIES})
|
||
|
ELSE()
|
||
|
SET(PANOPLY_PREVIEW_QT_LIBRARIES Qt5::Widgets)
|
||
|
ENDIF()
|
||
|
|
||
|
TARGET_LINK_LIBRARIES(nl_panoply_preview
|
||
|
nelmisc
|
||
|
nel3d
|
||
|
shared_widgets
|
||
|
${PANOPLY_PREVIEW_QT_LIBRARIES})
|
||
|
|
||
|
NL_DEFAULT_PROPS(nl_panoply_preview "NeL, Tools, 3D: panoply_preview")
|
||
|
NL_ADD_RUNTIME_FLAGS(nl_panoply_preview)
|
||
|
|
||
|
INSTALL(TARGETS nl_panoply_preview RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT samples3d)
|