Move datafilespage to shared space.

actorid
Michal Sciubidlo 12 years ago
parent 19dff822f4
commit f029a9011a

@ -1,56 +1,23 @@
set(LAUNCHER set(LAUNCHER
datafilespage.cpp
graphicspage.cpp graphicspage.cpp
main.cpp main.cpp
maindialog.cpp maindialog.cpp
playpage.cpp playpage.cpp
model/datafilesmodel.cpp
model/modelitem.cpp
model/esm/esmfile.cpp
utils/filedialog.cpp
utils/naturalsort.cpp
utils/lineedit.cpp
utils/profilescombobox.cpp
utils/textinputdialog.cpp
launcher.rc launcher.rc
) )
set(LAUNCHER_HEADER set(LAUNCHER_HEADER
datafilespage.hpp
graphicspage.hpp graphicspage.hpp
maindialog.hpp maindialog.hpp
playpage.hpp playpage.hpp
model/datafilesmodel.hpp
model/modelitem.hpp
model/esm/esmfile.hpp
utils/lineedit.hpp
utils/filedialog.hpp
utils/naturalsort.hpp
utils/profilescombobox.hpp
utils/textinputdialog.hpp
) )
# Headers that must be pre-processed # Headers that must be pre-processed
set(LAUNCHER_HEADER_MOC set(LAUNCHER_HEADER_MOC
datafilespage.hpp
graphicspage.hpp graphicspage.hpp
maindialog.hpp maindialog.hpp
playpage.hpp playpage.hpp
model/datafilesmodel.hpp
model/modelitem.hpp
model/esm/esmfile.hpp
utils/lineedit.hpp
utils/filedialog.hpp
utils/profilescombobox.hpp
utils/textinputdialog.hpp
) )
source_group(launcher FILES ${LAUNCHER} ${LAUNCHER_HEADER} ${LAUNCHER_HEADER_MOC}) source_group(launcher FILES ${LAUNCHER} ${LAUNCHER_HEADER} ${LAUNCHER_HEADER_MOC})

@ -8,8 +8,7 @@
#include <components/files/configurationmanager.hpp> #include <components/files/configurationmanager.hpp>
#include <components/files/ogreplugin.hpp> #include <components/files/ogreplugin.hpp>
#include <components/settings/settings.hpp> #include <components/settings/settings.hpp>
#include <components/file_order_list/utils/naturalsort.hpp>
#include "utils/naturalsort.hpp"
#include "graphicspage.hpp" #include "graphicspage.hpp"

@ -1,9 +1,10 @@
#include <QtGui> #include <QtGui>
#include <components/file_order_list/datafilespage.hpp>
#include "maindialog.hpp" #include "maindialog.hpp"
#include "playpage.hpp" #include "playpage.hpp"
#include "graphicspage.hpp" #include "graphicspage.hpp"
#include "datafilespage.hpp"
MainDialog::MainDialog() MainDialog::MainDialog()
{ {

@ -23,6 +23,22 @@ endforeach (u)
source_group ("components\\${dir}" FILES ${files}) source_group ("components\\${dir}" FILES ${files})
endmacro (add_component_dir) endmacro (add_component_dir)
macro (add_component_qt_dir dir)
set (files)
foreach (u ${ARGN})
file (GLOB ALL ${CMAKE_CURRENT_SOURCE_DIR} "${dir}/${u}.[ch]pp")
foreach (f ${ALL})
list (APPEND files "${f}")
list (APPEND COMPONENT_FILES "${f}")
endforeach (f)
file (GLOB MOC_H ${CMAKE_CURRENT_SOURCE_DIR} "${dir}/${u}.hpp")
foreach (fi ${MOC_H})
list (APPEND COMPONENT_MOC_FILES "${fi}")
endforeach (fi)
endforeach (u)
source_group ("components\\${dir}" FILES ${files})
endmacro (add_component_qt_dir)
macro (copy_all_files source_dir destination_dir files) macro (copy_all_files source_dir destination_dir files)
foreach (f ${files}) foreach (f ${files})
get_filename_component(filename ${f} NAME) get_filename_component(filename ${f} NAME)

@ -66,9 +66,19 @@ add_component_dir (translation
translation translation
) )
add_component_qt_dir (file_order_list
datafilespage model/modelitem model/datafilesmodel model/esm/esmfile
utils/filedialog utils/lineedit utils/profilescombobox utils/textinputdialog utils/naturalsort
)
find_package(Qt4 COMPONENTS QtCore QtGUI REQUIRED)
include(${QT_USE_FILE})
QT4_WRAP_CPP(MOC_SRCS ${COMPONENT_MOC_FILES})
include_directories(${BULLET_INCLUDE_DIRS}) include_directories(${BULLET_INCLUDE_DIRS})
add_library(components STATIC ${COMPONENT_FILES}) add_library(components STATIC ${COMPONENT_FILES} ${MOC_SRCS})
target_link_libraries(components ${Boost_LIBRARIES} ${OGRE_LIBRARIES}) target_link_libraries(components ${Boost_LIBRARIES} ${OGRE_LIBRARIES})

Loading…
Cancel
Save