Menu

ProjectSetup

Nikolaus Vahrenkamp Valerij Wittenbeck
  • You can use the following CMake script in order to setup a project that relies on simox libraries.
  • By calling FIND_PACKAGE(Simox) the environment variable Simox_DIR is queried in order to find the location of Simox. The simox version can be chosen by setting the environment variable Simox_DIR to the build (e.g. /home/me/simox/build) or the install (e.g. /home/me/libraries/simox) directory.
    PROJECT ( myDemo )
    FIND_PACKAGE(Simox REQUIRED)
    IF(Simox_USE_COIN_VISUALIZATION)
      FILE(GLOB SRCS ${PROJECT_SOURCE_DIR}/myDemo.cpp ${PROJECT_SOURCE_DIR}/myWindow.cpp)
      FILE(GLOB INCS ${PROJECT_SOURCE_DIR}/myWindow.h)
      set(GUI_MOC_HDRS ${PROJECT_SOURCE_DIR}/myWindow.h)
      set(GUI_UIS ${PROJECT_SOURCE_DIR}/myWindow.ui)
      SimoxQtApplication(${PROJECT_NAME} "${SRCS}" "${INCS}" "${GUI_MOC_HDRS}" "${GUI_UIS}")
    ENDIF()

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.