Skip to content

Commit

Permalink
+ simplify dependencies in CMakeLists.txt files
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 17, 2015
1 parent 74e397c commit 1b58ec8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 38 deletions.
18 changes: 5 additions & 13 deletions src/App/CMakeLists.txt
Expand Up @@ -23,19 +23,11 @@ include_directories(
${ZLIB_INCLUDE_DIR}
)

if(WIN32)
set(FreeCADApp_LIBS
FreeCADBase
${Boost_LIBRARIES}
${QT_LIBRARIES}
)
else(WIN32)
set(FreeCADApp_LIBS
FreeCADBase
${Boost_LIBRARIES}
${QT_LIBRARIES}
)
endif(WIN32)
set(FreeCADApp_LIBS
FreeCADBase
${Boost_LIBRARIES}
${QT_LIBRARIES}
)

generate_from_xml(DocumentPy)
generate_from_xml(DocumentObjectPy)
Expand Down
20 changes: 6 additions & 14 deletions src/Mod/Path/App/CMakeLists.txt
Expand Up @@ -20,20 +20,12 @@ include_directories(
)
link_directories(${OCC_LIBRARY_DIR})

if(MSVC)
set(Path_LIBS
Robot
${QT_QTCORE_LIBRARY}
FreeCADApp
)
else(MSVC)
set(Path_LIBS
Robot
Part
${QT_QTCORE_LIBRARY}
FreeCADApp
)
endif(MSVC)
set(Path_LIBS
Robot
Part
${QT_QTCORE_LIBRARY}
FreeCADApp
)

generate_from_xml(CommandPy)
generate_from_xml(PathPy)
Expand Down
15 changes: 4 additions & 11 deletions src/Mod/Web/App/CMakeLists.txt
Expand Up @@ -9,17 +9,10 @@ include_directories(
${QT_INCLUDE_DIR}
)

if(MSVC)
set(Web_LIBS
FreeCADApp
${QT_LIBRARIES}
)
else(MSVC)
set(Web_LIBS
FreeCADApp
${QT_LIBRARIES}
)
endif(MSVC)
set(Web_LIBS
FreeCADApp
${QT_LIBRARIES}
)

set(Web_MOC_HDRS
Server.h
Expand Down

0 comments on commit 1b58ec8

Please sign in to comment.