From 148d0518f86ca8bb74b2a6aa50599877aebeebac Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Thu, 13 Oct 2022 16:25:15 +0200 Subject: [PATCH] fix(storybook): fix build on linux CMake's GLOB is capturing source files from `build/*` resulting in multiple `main` definitions. Generally, usage of GLOB is discouraged. --- storybook/CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/storybook/CMakeLists.txt b/storybook/CMakeLists.txt index a6f8f42fe6..63a24bc5dc 100644 --- a/storybook/CMakeLists.txt +++ b/storybook/CMakeLists.txt @@ -17,18 +17,11 @@ find_package( file(GLOB_RECURSE QML_FILES "stubs/*.qml" "Storybook/*.qml" "../ui/StatusQ/*.qml" "../ui/app/*.qml") file(GLOB_RECURSE JS_FILES "../ui/StatusQ/*.js" "../ui/app/*.js") -file(GLOB_RECURSE HEADERS *.h) -if(APPLE) - file(GLOB_RECURSE SOURCES *.cpp *.mm) -else() - file(GLOB_RECURSE SOURCES *.cpp) -endif() add_executable( ${PROJECT_NAME} + main.cpp qml.qrc - ${HEADERS} - ${SOURCES} ${QML_FILES} ${JS_FILES} )