Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / 3d / panoply_preview / CMakeLists.txt
blob3c7e1705032c247d6b865f4e8e6b4c94b2173f76
2 FILE(GLOB SRCS *.cpp)
3 FILE(GLOB HDRS *.h)
4 IF (WIN32)
5         FILE(GLOB RSRC *.rc)
6 ENDIF (WIN32)
7 FILE(GLOB RESOURCES *.qrc)
9 FILE(GLOB PANOPLY_MAKER ../panoply_maker/color_modifier.cpp ../panoply_maker/color_modifier.h)
11 SOURCE_GROUP("" FILES ${SRCS} ${HDRS} ${RSRC} ${RESOURCES})
12 SOURCE_GROUP("panoply_maker" FILES ${PANOPLY_MAKER})
14 SET(CMAKE_AUTOMOC ON)
16 QT5_ADD_RESOURCES(RESOURCE_ADDED ${RESOURCES})
18 ADD_EXECUTABLE(nl_panoply_preview WIN32 ${SRC}
19         ${SRCS}
20         ${HDRS}
21         ${RSRC}
22         ${RESOURCE_ADDED}
23         ${PANOPLY_MAKER}
24         )
26 IF(QT_STATIC)
27   SET(PANOPLY_PREVIEW_QT_LIBRARIES ${QT_LIBRARIES})
28 ELSE()
29   SET(PANOPLY_PREVIEW_QT_LIBRARIES Qt5::Widgets)
30 ENDIF()
32 TARGET_LINK_LIBRARIES(nl_panoply_preview
33         nelmisc
34         nel3d
35         shared_widgets
36         ${PANOPLY_PREVIEW_QT_LIBRARIES})
38 NL_DEFAULT_PROPS(nl_panoply_preview "NeL, Tools, 3D: panoply_preview")
39 NL_ADD_RUNTIME_FLAGS(nl_panoply_preview)
41 INSTALL(TARGETS nl_panoply_preview RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT samples3d)