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.
This commit is contained in:
Patryk Osmaczko 2022-10-13 16:25:15 +02:00 committed by osmaczko
parent 7a73452706
commit 148d0518f8
1 changed files with 1 additions and 8 deletions

View File

@ -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}
)