anhttran / 3dmm_basic

An implementation of the classical 3DMM fitting algorithm
114 stars 31 forks source link

CvGL CmakeLists.txt is absolute path #5

Closed mcoder2014 closed 6 years ago

mcoder2014 commented 6 years ago

The module CvGL seems need Mesa-7.5.1.

But you set the directories as an absolute path. Maybe you can change it or remind this thing to others at readme.md.

/modules/CvGL/CMakeLists.txt

cmake_minimum_required(VERSION 2.8)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories("/nfs/isicvlnas01/users/anhttran/lib/Mesa-7.5.1/release/include")

SET(SOURCE
    FBRender.cpp
)

SET(HEADERS
    cvgl.h
    FBRender.h  
    Material.h
    SimpleMesh.h
    Texture.h   
)

add_library( CvGl SHARED ${SOURCE} ${HEADERS})
target_link_libraries(CvGl -lm -L/nfs/isicvlnas01/users/anhttran/lib/Mesa-7.5.1/release/lib)

install (TARGETS CvGl DESTINATION .)
anhttran commented 6 years ago

Yes, you can change it.