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:
parent
7a73452706
commit
148d0518f8
|
@ -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}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue