summaryrefslogtreecommitdiff
path: root/core/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'core/CMakeLists.txt')
-rw-r--r--core/CMakeLists.txt42
1 files changed, 13 insertions, 29 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index 37fccd3..e39512d 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -14,9 +14,9 @@ elseif(APPLE)
option(BUILD_CORE_WITH_METAL_BACKEND ON)
endif()
-function(add_source_group GROUP_NAME GROUP_SOURCES)
- set(${GROUP_NAME} ${GROUP_SOURCES})
- set_source_files_properties(${GROUP_SOURCES}
+function(add_source_group GROUP_NAME)
+ set(${GROUP_NAME} ${ARGN} PARENT_SCOPE)
+ set_source_files_properties(${ARGN}
PROPERTIES
UNITY_GROUP "${GROUP_NAME}"
)
@@ -24,54 +24,37 @@ endfunction()
set(ENTRYPOINT_MODULE_SOURCES
src/Entrypoint/main.cpp
- src/Entrypoint/Common.hpp
src/Entrypoint/Common.cpp
- src/Entrypoint/OpenGL2.hpp
src/Entrypoint/OpenGL2.cpp
- src/Entrypoint/OpenGL3.hpp
src/Entrypoint/OpenGL3.cpp
- src/Entrypoint/Vulkan.hpp
src/Entrypoint/Vulkan.cpp
- src/Entrypoint/DirectX11.hpp
src/Entrypoint/DirectX11.cpp
- src/Entrypoint/DirectX12.hpp
src/Entrypoint/DirectX12.cpp
- src/Entrypoint/Metal.hpp
src/Entrypoint/Metal.mm
)
-# macro(option_with_message OPTION_NAME DEFAULT_VALUE MESSAGE)
-# option(${OPTION_NAME} ${DEFAULT_VALUE})
-# if(${OPTION_NAME})
-# message(${MESSAGE})
-# endif()
-# endmacro()
-# option_with_message(BUILD_CORE_WITH_OPENGL2_BACKEND ON "Building with OpenGL2 backend")
-# option_with_message(BUILD_CORE_WITH_OPENGL3_BACKEND ON "Building with OpenGL3 backend")
-# option_with_message(BUILD_CORE_WITH_VULKAN_BACKEND ON "Building with Vulkan backend")
-# option_with_message(BUILD_CORE_WITH_DX11_BACKEND ON "Building with DirectX11 backend")
-# option_with_message(BUILD_CORE_WITH_DX12_BACKEND ON "Building with DirectX12 backend")
-# option_with_message(BUILD_CORE_WITH_METAL_BACKEND ON "Building with Metal backend")
+add_source_group(MODEL_MODULE_SOURCES
+ src/Model/Stock.cpp
+)
add_source_group(UI_MODULE_SOURCES
- src/UI/Export.hpp
- src/UI/Export.cpp
+ src/UI/Localization.cpp
+ src/UI/UI_DatabaseView.cpp
+ src/UI/UI_Export.cpp
+ src/UI/UI_Items.cpp
+ src/UI/UI_MainWindow.cpp
+ src/UI/UI_Settings.cpp
)
add_source_group(UTILS_MODULE_SOURCES
- src/Utils/Enum.hpp
- src/Utils/I18n.hpp
src/Utils/I18n.cpp
- src/Utils/Sigslot.hpp
src/Utils/Sigslot.cpp
- src/Utils/String.hpp
src/Utils/String.cpp
)
# These files are compiled individually, hence no UNITY_GROUP property
# This is because the files here may contain non-c++ languages
set(UTILS_DIALOG_MODULE_SOURCES
- src/Utils/Dialog/Dialog.hpp
src/Utils/Dialog/Dialog.cpp
)
if(APPLE)
@@ -96,6 +79,7 @@ function(add_executable_variant TARGET_NAME)
add_executable(${TARGET_NAME}
${ENTRYPOINT_MODULE_SOURCES}
+ ${MODEL_MODULE_SOURCES}
${UI_MODULE_SOURCES}
${UTILS_MODULE_SOURCES}
${UTILS_DIALOG_MODULE_SOURCES}