#FIND_PACKAGE(ACE REQUIRED)
find_package(Qt5Core REQUIRED)

################# Qt Ui related ###############################################
#include(${QT_USE_FILE})
#SET(gui_UI_FILES
#    ui/mainwindow.ui
#    ui/objecttreewidget.ui
#)
#SET(gui_MOC_HEADERS
#    include/mainwindow.h
#    include/objecttreewidget.h
#    include/mapmodel.h
#    include/CompositeViewerQOSG.h
#    include/QOSGWidget.h
#)
#SET(gui_SOURCES
#    src/mainwindow.cpp
#    src/objecttreewidget.cpp
#    src/mapmodel.cpp
#    src/CompositeViewerQOSG.cpp
#    src/QOSGWidget.cpp
#)

set(SOURCES
    src/MapViewerApp.cpp
    src/MapViewerApp.h
    src/main.cpp
)
ADD_EXECUTABLE(mapviewer ${SOURCES})
TARGET_LINK_LIBRARIES(mapviewer
    lutefisk3d_IMP
    ACE
)
qt5_use_modules(mapviewer Core)

#FIND_PACKAGE(ACE REQUIRED)
find_package(Qt5Core REQUIRED)

################# Qt Ui related ###############################################
#include(${QT_USE_FILE})
#SET(gui_UI_FILES
#    ui/mainwindow.ui
#    ui/objecttreewidget.ui
#)
#SET(gui_MOC_HEADERS
#    include/mainwindow.h
#    include/objecttreewidget.h
#    include/mapmodel.h
#    include/CompositeViewerQOSG.h
#    include/QOSGWidget.h
#)
#SET(gui_SOURCES
#    src/mainwindow.cpp
#    src/objecttreewidget.cpp
#    src/mapmodel.cpp
#    src/CompositeViewerQOSG.cpp
#    src/QOSGWidget.cpp
#)

set(SOURCES
    src/MapViewerApp.cpp
    src/MapViewerApp.h
    src/main.cpp
)
ADD_EXECUTABLE(mapviewer ${SOURCES})
TARGET_LINK_LIBRARIES(mapviewer
    lutefisk3d_IMP
    ACE
)
qt5_use_modules(mapviewer Core)

add_custom_command(TARGET mapviewer POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E copy_directory ${ThirdParty_Install_Dir}/share/Lutefisk3D/CoreData ${EXECUTABLE_OUTPUT_PATH}/CoreData
    COMMAND ${CMAKE_COMMAND} -E make_directory ${EXECUTABLE_OUTPUT_PATH}/Data
)

Copy Lutefisk3D minimal data to output directory.
Copy Lutefisk3D minimal data to output directory.
