...
 
Commits (7)
......@@ -40,44 +40,157 @@ else (APPLE)
)
endif(APPLE)
set (headers
../Core/Core.hh
../Core/OpenFunctionThread.hh
../Core/PluginInfo.hh
../Core/SpinBoxEventFilter.hh
../Logging/PluginLogging.hh
../Scripting/ScriptingWrapper.hh
../Scripting/scriptPrototypes/prototypeDataType.hh
../Scripting/scriptPrototypes/prototypeIdList.hh
../Scripting/scriptPrototypes/prototypeMatrix4x4.hh
../Scripting/scriptPrototypes/prototypeVec3d.hh
../Scripting/scriptPrototypes/prototypeVec4d.hh
../Scripting/scriptWrappers/DataTypeWrapper.hh
../Scripting/scriptWrappers/idListWrapper.hh
../Scripting/scriptWrappers/matrix4x4Wrapper.hh
../Scripting/scriptWrappers/vec3dWrapper.hh
../Scripting/scriptWrappers/vec4dWrapper.hh
../widgets/aboutWidget/aboutWidget.hh
../widgets/addEmptyWidget/addEmptyWidget.hh
../widgets/loggerWidget/loggerWidget.hh
../widgets/coreWidget/ColorStatusBar.hh
../widgets/coreWidget/CoreWidget.hh
../widgets/coreWidget/SideArea.hh
../widgets/coreWidget/SideElement.hh
../widgets/helpWidget/helpBrowser.hh
../widgets/helpWidget/helpWidget.hh
../widgets/processManagerWidget/BlockingWidget.hh
../widgets/processManagerWidget/processManagerWidget.hh
../widgets/loadWidget/FileOptionsDialog.hh
../widgets/loadWidget/loadWidget.hh
../widgets/optionsWidget/ShortcutButton.hh
../widgets/optionsWidget/optionsWidget.hh
../widgets/PluginDialog/PluginDialog.hh
../widgets/viewModeWidget/viewModeChangeWidget.hh
../widgets/viewModeWidget/viewModeWidget.hh
../widgets/videoCaptureDialog/VideoCaptureDialog.hh
../widgets/snapshotDialog/SnapshotDialog.hh
../widgets/stereoSettingsWidget/stereoSettingsWidget.hh
../widgets/postProcessorWidget/postProcessorWidget.hh
../widgets/rendererWidget/TextBrowserWidget.hh
../widgets/rendererWidget/renderObjectHighLighter.hh
../widgets/rendererWidget/rendererObjectWidget.hh
../widgets/rendererWidget/rendererWidget.hh
)
if (WIN32)
SET(WIN_EXTRA_DIRS "../StackWalker" )
else(WIN32)
SET(WIN_EXTRA_DIRS "")
LIST(APPEND headers "../StackWalker/StackWalker.hh")
endif(WIN32)
# source code directories
set (directories
..
../Core
../Logging
../Scripting
../Scripting/scriptPrototypes
../Scripting/scriptWrappers
../widgets/aboutWidget
../widgets/addEmptyWidget
../widgets/loggerWidget
../widgets/coreWidget
../widgets/helpWidget
../widgets/processManagerWidget
../widgets/loadWidget
../widgets/optionsWidget
../widgets/PluginDialog
../widgets/viewModeWidget
../widgets/videoCaptureDialog
../widgets/snapshotDialog
../widgets/stereoSettingsWidget
../widgets/postProcessorWidget
../widgets/rendererWidget
${WIN_EXTRA_DIRS}
set( sources
../OpenFlipper.cc
../Core/BackupCommunication.cc
../Core/Core.cc
../Core/Logging.cc
../Core/OpenFunctionThread.cc
../Core/ParseIni.cc
../Core/ParseObj.cc
../Core/PluginCommunication.cc
../Core/PluginLoader.cc
../Core/RPC.cc
../Core/SelectionCommunication.cc
../Core/SpinBoxEventFilter.cc
../Core/Video.cc
../Core/openFunctions.cc
../Core/optionHandling.cc
../Core/process.cc
../Core/saveFunctions.cc
../Core/saveSettings.cc
../Core/scripting.cc
../Logging/PluginLogging.cc
../Scripting/ScriptingWrapper.cc
../Scripting/scriptPrototypes/prototypeDataType.cc
../Scripting/scriptPrototypes/prototypeIdList.cc
../Scripting/scriptPrototypes/prototypeMatrix4x4.cc
../Scripting/scriptPrototypes/prototypeVec3d.cc
../Scripting/scriptPrototypes/prototypeVec4d.cc
../Scripting/scriptWrappers/DataTypeWrapper.cc
../Scripting/scriptWrappers/idListWrapper.cc
../Scripting/scriptWrappers/matrix4x4Wrapper.cc
../Scripting/scriptWrappers/vec3dWrapper.cc
../Scripting/scriptWrappers/vec4dWrapper.cc
../widgets/aboutWidget/aboutWidget.cc
../widgets/addEmptyWidget/addEmptyWidget.cc
../widgets/loggerWidget/loggerWidget.cc
../widgets/coreWidget/About.cc
../widgets/coreWidget/ColorStatusBar.cc
../widgets/coreWidget/ContextMenu.cc
../widgets/coreWidget/CoreLicenseInfos.cc
../widgets/coreWidget/CoreWidget.cc
../widgets/coreWidget/CoreWidgetLogging.cc
../widgets/coreWidget/CoreWidgetToolbar.cc
../widgets/coreWidget/Help.cc
../widgets/coreWidget/LoggerHandling.cc
../widgets/coreWidget/MenuBar.cc
../widgets/coreWidget/SideArea.cc
../widgets/coreWidget/SideElement.cc
../widgets/coreWidget/StackWidget.cc
../widgets/coreWidget/StatusBar.cc
../widgets/coreWidget/dragAndDrop.cc
../widgets/coreWidget/keyHandling.cc
../widgets/coreWidget/picking.cc
../widgets/coreWidget/postProcessorDialog.cc
../widgets/coreWidget/rendererDialog.cc
../widgets/coreWidget/viewMode.cc
../widgets/coreWidget/viewerControl.cc
../widgets/helpWidget/helpBrowser.cc
../widgets/helpWidget/helpWidget.cc
../widgets/processManagerWidget/BlockingWidget.cc
../widgets/processManagerWidget/processManagerWidget.cc
../widgets/loadWidget/FileOptionsDialog.cc
../widgets/loadWidget/loadWidget.cc
../widgets/optionsWidget/ShortcutButton.cc
../widgets/optionsWidget/downloader.cc
../widgets/optionsWidget/keyBindings.cc
../widgets/optionsWidget/optionsWidget.cc
../widgets/PluginDialog/PluginDialog.cc
../widgets/viewModeWidget/viewModeChangeWidget.cc
../widgets/viewModeWidget/viewModeWidget.cc
../widgets/videoCaptureDialog/VideoCaptureDialog.cc
../widgets/snapshotDialog/SnapshotDialog.cc
../widgets/stereoSettingsWidget/stereoSettingsWidget.cc
../widgets/postProcessorWidget/postProcessorWidget.cc
../widgets/rendererWidget/TextBrowserWidget.cc
../widgets/rendererWidget/renderObjectHighLighter.cc
../widgets/rendererWidget/rendererObjectWidget.cc
../widgets/rendererWidget/rendererWidget.cc
)
# collect all header,source and ui files
acg_append_files (headers "*.hh" ${directories})
acg_append_files (sources "*.cc" ${directories})
# This list is only requirred to add the into the grouping in IDE projects
set( uifiles
../LicenseManager/keyGen/keygen.ui
../widgets/PluginDialog/pluginDialog.ui
../widgets/addEmptyWidget/addEmpty.ui
../widgets/aboutWidget/aboutWidget.ui
../widgets/postProcessorWidget/postProcessorWidget.ui
../widgets/helpWidget/helpWidget.ui
../widgets/viewModeWidget/viewModeChange.ui
../widgets/viewModeWidget/viewMode.ui
../widgets/optionsWidget/optionsWidget.ui
../widgets/snapshotDialog/SnapshotDialog.ui
../widgets/processManagerWidget/processManagerWidget.ui
../widgets/stereoSettingsWidget/stereoSettingsWidget.ui
../widgets/videoCaptureDialog/VideoCaptureDialog.ui
../widgets/rendererWidget/rendererObjectWidget.ui
../widgets/rendererWidget/rendererWidget.ui
)
# remove template cc files from source file list
acg_drop_templates (sources)
if (WIN32)
LIST(APPEND sources "../StackWalker/StackWalker.cc")
endif(WIN32)
set(RC_SRC "")
......@@ -106,11 +219,12 @@ file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/static_plugins.cc" ";\n} /* namespace c
list(APPEND RC_SRC "${CMAKE_CURRENT_BINARY_DIR}/static_plugins.cc")
RECURSE_GROUPS( ${CMAKE_CURRENT_SOURCE_DIR}/../../ )
# Group the sources in VS to get a tree structure like in the file system instead of all files in one folder
source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${sources} ${headers} ${uifiles})
if (WIN32)
# add app icon rc file to windows build
acg_add_executable (${OPENFLIPPER_PRODUCT_STRING} WIN32 ${CMAKE_CURRENT_SOURCE_DIR}/CoreApp.rc ${sources} ${headers} ${RC_SRC})
acg_add_executable (${OPENFLIPPER_PRODUCT_STRING} WIN32 ${CMAKE_CURRENT_SOURCE_DIR}/CoreApp.rc ${sources} ${headers} ${RC_SRC} ${uifiles})
# link to qtmain library to get WinMain function for a non terminal app
target_link_libraries (${OPENFLIPPER_PRODUCT_STRING} ${QT_QTMAIN_LIBRARY})
elseif (APPLE)
......
This diff is collapsed.
# Force minimal cmake version
# Required 3.1 to set C++11
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
# Required 3.8 to use source_group TREE
cmake_minimum_required(VERSION 3.8.0 FATAL_ERROR)
file(SHA512 ${CMAKE_SOURCE_DIR}/CMakeLists.txt HASH_TOPLEVEL_CMAKEFILE)
file(SHA512 ${CMAKE_SOURCE_DIR}/OpenFlipper/cmake/CMakeLists.txt HASH_LATEST_CMAKEFILE)
......