mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 04:40:53 +00:00
36 lines
839 B
CMake
36 lines
839 B
CMake
|
|
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})
|
|
|
|
CMAKE_POLICY(SET CMP0020 NEW)
|
|
ADD_EXECUTABLE(nl_panoply_preview WIN32 ${SRC}
|
|
${SRCS}
|
|
${HDRS}
|
|
${RSRC}
|
|
${RESOURCE_ADDED}
|
|
${PANOPLY_MAKER}
|
|
)
|
|
|
|
TARGET_LINK_LIBRARIES(nl_panoply_preview
|
|
nelmisc
|
|
nel3d
|
|
shared_widgets
|
|
Qt5::Widgets)
|
|
|
|
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)
|