Commit edea10bf authored by Romain Pacanowski's avatar Romain Pacanowski

added missing tinyply dependencies

parent 515aebff
......@@ -2,7 +2,7 @@ project(mds3d_td6)
cmake_minimum_required(VERSION 3.2.0)
add_subdirectory(ext/glfw)
#add_subdirectory(ext/glfw)
add_subdirectory(ext/glbinding)
add_subdirectory(ext/SOIL)
......@@ -49,11 +49,18 @@ set(SRC_FILES
src/trackball.h
)
#Externals SOURCES
file(GLOB_RECURSE EXT_SRCS
../../externals/tinyply/*.cpp
../../externals/tinyply/*.c)
add_definitions(-DDATA_DIR="${PROJECT_SOURCE_DIR}/data")
add_executable(mds3d_glviewer ${SRC_FILES})
add_executable(previewer ${EXT_SRCS} ${SRC_FILES} )
target_link_libraries(mds3d_glviewer glfw ${GLFW_LIBRARIES} glbinding SOIL)
target_link_libraries(previewer glfw ${GLFW_LIBRARIES} glbinding SOIL)
function(IndicateExternalFile _target)
foreach(_file IN ITEMS ${ARGN})
......@@ -65,4 +72,4 @@ function(IndicateExternalFile _target)
endfunction()
file(GLOB SHADERS "data/shaders/*.vert" "data/shaders/*.frag")
IndicateExternalFile("mds3d_glviewer" ${SHADERS})
IndicateExternalFile("previewer" ${SHADERS})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment