cmake_minimum_required(VERSION 3.20) project(Bottle) # Set C++ standard set(CMAKE_CXX_STANDARD 17) set(CMAKE_BUILD_TYPE Debug) set(CMAKE_INSTALL_PREFIX "/home/alexander/Documents/bottleTutorial/install") # Set the paths to OpenCASCADE and VTK installations set(OpenCASCADE_DIR "/home/alexander/Documents/openCASCADE/Install/lib/cmake/opencascade") set(VTK_DIR "/home/alexander/Documents/VTK/Install/lib/cmake/vtk-9.2") # Find OpenCASCADE find_package(OpenCASCADE REQUIRED) include_directories(${OpenCASCADE_INCLUDE_DIR}) message(STATUS "OpenCASCADE_INCLUDE_DIR=${OpenCASCADE_INCLUDE_DIR}") # Find VTK find_package(VTK REQUIRED) # See libraries message(STATUS "OpenCASCADE_LIBRARIES=${OpenCASCADE_LIBRARIES}") message(STATUS "VTK_LIBRARIES=${VTK_LIBRARIES}") # Add your source files here set(SOURCES src/main.cpp #src/your_file.cpp # ... other source files ... ) # Add your header files here set(HEADERS # include/your_header.h # # ... other header files ... ) # Create an executable add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS}) # Link the required libraries target_link_libraries(${PROJECT_NAME} ${OpenCASCADE_LIBRARIES} ${VTK_LIBRARIES} ) # Set the RPATH list(APPEND RPATH_LIST "/home/alexander/Documents/openCASCADE/Install/lib" "/home/alexander/Documents/VTK/Install/lib" ) set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "${RPATH_LIST}")