
include_directories(
    ${CMAKE_SOURCE_DIR}/src
    ${CMAKE_CURRENT_BINARY_DIR}
    ${Boost_INCLUDE_DIRS}
    ${COIN3D_INCLUDE_DIRS}
    ${ZLIB_INCLUDE_DIR}
    ${PYTHON_INCLUDE_DIRS}
    ${XercesC_INCLUDE_DIRS}
)

set(PathSimulatorGui_LIBS
    PathSimulator
    FreeCADGui
)

if (BUILD_QT5)
    qt5_add_resources(PathSimulator_QRC_SRCS Resources/PathSimulator.qrc)
else()
    qt4_add_resources(PathSimulator_QRC_SRCS Resources/PathSimulator.qrc)
endif()

SET(PathSimulatorGui_SRCS
    ${PathSimulator_QRC_SRCS}
    AppPathSimulatorGui.cpp
    Command.cpp
    PreCompiled.cpp
    PreCompiled.h
    Workbench.cpp
    Workbench.h
)

add_library(PathSimulatorGui SHARED ${PathSimulatorGui_SRCS})
target_link_libraries(PathSimulatorGui ${PathSimulatorGui_LIBS})

fc_target_copy_resource(PathSimulatorGui 
    ${CMAKE_SOURCE_DIR}/src/Mod/PathSimulator
    ${CMAKE_BINARY_DIR}/Mod/PathSimulator
    InitGui.py)

SET_BIN_DIR(PathSimulatorGui PathSimulatorGui /Mod/PathSimulator)
SET_PYTHON_PREFIX_SUFFIX(PathSimulatorGui)
    
install(TARGETS PathSimulatorGui DESTINATION ${CMAKE_INSTALL_LIBDIR})
