Skip to content

Commit

Permalink
copy scripts at compile time to build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 18, 2017
1 parent b0b8998 commit de414f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Mod/Web/CMakeLists.txt
@@ -1,6 +1,10 @@

add_subdirectory(App)
if(BUILD_GUI)
SET(Web_Scripts
Webscripts/__init__.py
Webscripts/Sketchfab.py
)
if(Qt5WebKitWidgets_FOUND OR QT_QTWEBKIT_FOUND)
add_subdirectory(Gui)
endif()
Expand All @@ -20,4 +24,4 @@ INSTALL(
Webscripts/Sketchfab.py
DESTINATION
Mod/Web/Webscripts
)
)
1 change: 1 addition & 0 deletions src/Mod/Web/Gui/CMakeLists.txt
Expand Up @@ -51,6 +51,7 @@ target_link_libraries(WebGui ${WebGui_LIBS})
fc_target_copy_resource(WebGui
${CMAKE_SOURCE_DIR}/src/Mod/Web
${CMAKE_BINARY_DIR}/Mod/Web
${Web_Scripts}
Init.py InitGui.py)

SET_BIN_DIR(WebGui WebGui /Mod/Web)
Expand Down

0 comments on commit de414f0

Please sign in to comment.