Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / shared_widgets / CMakeLists.txt
blobff0794d8bac9f93904314b644af38eab4130e7c6
1 FILE(GLOB SRCS *.cpp)
2 FILE(GLOB HDRS *.h)
3 IF (WIN32)
4         FILE(GLOB RSRC *.rc)
5 ENDIF (WIN32)
6 FILE(GLOB RESOURCES *.qrc)
8 SOURCE_GROUP("" FILES ${SRCS} ${HDRS} ${RSRC} ${RESOURCES})
10 SET(CMAKE_AUTOMOC ON)
12 QT5_ADD_RESOURCES(RESOURCE_ADDED ${RESOURCES})
14 NL_TARGET_LIB(shared_widgets ${SRCS} ${HDRS} ${RSRC} ${RESOURCE_ADDED})
16 IF(QT_STATIC)
17   SET(SHARED_WIDGETS_QT_LIBRARIES ${QT_LIBRARIES})
18 ELSE()
19   SET(SHARED_WIDGETS_QT_LIBRARIES Qt5::Widgets)
20 ENDIF()
22 TARGET_LINK_LIBRARIES(shared_widgets nelmisc nel3d ${SHARED_WIDGETS_QT_LIBRARIES})
23 NL_DEFAULT_PROPS(shared_widgets "NeL, Tools, 3D: Shared Widgets")
24 NL_ADD_RUNTIME_FLAGS(shared_widgets)
26 IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
27   INSTALL(TARGETS shared_widgets LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT tools3d)
28 ENDIF()