56 lines
1.8 KiB
CMake
56 lines
1.8 KiB
CMake
list(APPEND client_HEADERS
|
|
MediaTool.h
|
|
text_editor/TextEditorView.h
|
|
text_editor/TextEditorModel.h
|
|
text_editor/TextEditorController.h
|
|
text_editor/PlainTextDocument.h
|
|
audio_editor/AudioEditorView.h
|
|
image_editor/ImageEditorView.h
|
|
image_editor/ImageViewWidget.h
|
|
canvas/CanvasView.h
|
|
canvas/CanvasController.h
|
|
mesh_viewer/MeshViewerView.h
|
|
mesh_viewer/MeshViewerController.h
|
|
mesh_viewer/MeshViewerCanvas.h
|
|
web_client/WebClientView.h)
|
|
|
|
|
|
list(APPEND client_LIB_INCLUDES
|
|
text_editor/TextEditorView.cpp
|
|
text_editor/TextEditorModel.cpp
|
|
text_editor/TextEditorController.cpp
|
|
text_editor/PlainTextDocument.cpp
|
|
audio_editor/AudioEditorView.cpp
|
|
image_editor/ImageEditorView.cpp
|
|
image_editor/ImageViewWidget.cpp
|
|
mesh_viewer/MeshViewerView.cpp
|
|
mesh_viewer/MeshViewerController.cpp
|
|
mesh_viewer/MeshViewerCanvas.cpp
|
|
canvas/CanvasView.cpp
|
|
canvas/CanvasController.cpp
|
|
web_client/WebClientView.cpp
|
|
MediaTool.cpp)
|
|
|
|
if(WIN32)
|
|
add_executable(sample_gui WIN32 gui-main-win.cpp ${client_LIB_INCLUDES})
|
|
else()
|
|
find_package(X11 QUIET)
|
|
if(X11_FOUND)
|
|
add_executable(sample_gui gui-main.cpp ${client_LIB_INCLUDES} ${client_HEADERS})
|
|
else()
|
|
message(STATUS "Skipping sample GUI as no X11 dev support")
|
|
endif()
|
|
endif()
|
|
|
|
target_include_directories(sample_gui PUBLIC
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/text_editor"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/audio_editor"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_editor"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/web_client"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/canvas"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/mesh_viewer"
|
|
)
|
|
target_link_libraries(sample_gui PUBLIC client windows console core network database geometry audio web)
|
|
set_property(TARGET sample_gui PROPERTY FOLDER apps)
|
|
|
|
|