stuff-from-scratch/apps/notes_tk/CMakeLists.txt

68 lines
2.1 KiB
CMake
Raw Normal View History

2022-12-02 11:50:15 +00:00
set(APP_NAME notes_tk)
message(STATUS "Checking dependencies for app: " ${APP_NAME})
2022-11-11 11:48:42 +00:00
list(APPEND client_HEADERS
2022-12-02 11:50:15 +00:00
NotesTk.h
2022-11-11 11:48:42 +00:00
text_editor/TextEditorView.h
text_editor/TextEditorModel.h
text_editor/TextEditorController.h
text_editor/PlainTextDocument.h
audio_editor/AudioEditorView.h
image_editor/ImageEditorView.h
2022-11-17 17:33:48 +00:00
image_editor/ImageViewWidget.h
2022-11-18 15:11:54 +00:00
canvas/CanvasView.h
canvas/CanvasController.h
2022-12-05 10:59:45 +00:00
canvas/CanvasDrawingArea.h
canvas/CanvasCommandSelectorView.h
2022-11-18 17:05:33 +00:00
mesh_viewer/MeshViewerView.h
mesh_viewer/MeshViewerController.h
mesh_viewer/MeshViewerCanvas.h
2022-11-11 11:48:42 +00:00
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
2022-11-17 17:33:48 +00:00
image_editor/ImageViewWidget.cpp
2022-11-18 17:05:33 +00:00
mesh_viewer/MeshViewerView.cpp
mesh_viewer/MeshViewerController.cpp
mesh_viewer/MeshViewerCanvas.cpp
2022-11-18 15:11:54 +00:00
canvas/CanvasView.cpp
canvas/CanvasController.cpp
2022-12-05 10:59:45 +00:00
canvas/CanvasDrawingArea.cpp
canvas/CanvasCommandSelectorView.cpp
2022-11-11 11:48:42 +00:00
web_client/WebClientView.cpp
2022-12-02 11:50:15 +00:00
NotesTk.cpp)
set(DEPENDENCIES_FOUND True)
if(WIN32)
2022-12-02 11:50:15 +00:00
add_executable(${APP_NAME} WIN32 main-win.cpp ${client_LIB_INCLUDES})
else()
find_package(X11 QUIET)
if(X11_FOUND)
2022-12-02 11:50:15 +00:00
add_executable(${APP_NAME} main.cpp ${client_LIB_INCLUDES} ${client_HEADERS})
else()
message(STATUS "X11 not found - skipping")
set(DEPENDENCIES_FOUND FALSE)
endif()
endif()
if(DEPENDENCIES_FOUND)
target_include_directories(${APP_NAME} PUBLIC
2022-11-11 11:48:42 +00:00
"${CMAKE_CURRENT_SOURCE_DIR}/text_editor"
"${CMAKE_CURRENT_SOURCE_DIR}/audio_editor"
"${CMAKE_CURRENT_SOURCE_DIR}/image_editor"
"${CMAKE_CURRENT_SOURCE_DIR}/web_client"
2022-11-18 15:11:54 +00:00
"${CMAKE_CURRENT_SOURCE_DIR}/canvas"
2022-11-18 17:05:33 +00:00
"${CMAKE_CURRENT_SOURCE_DIR}/mesh_viewer"
2022-11-11 11:48:42 +00:00
)
target_link_libraries(${APP_NAME} PUBLIC client windows console core network database geometry audio web)
set_property(TARGET ${APP_NAME} PROPERTY FOLDER apps)
endif()