Commit bd1a7b31 authored by Sylvain Thery's avatar Sylvain Thery

build independant de ThirdParty

parent fc424142
cmake_minimum_required(VERSION 2.6)
#include(ExternalProject)
project(CGoGN_ThirdParty)
SET(CGoGN_ROOT_DIR ${CMAKE_SOURCE_DIR}/..)
find_package(OpenGL)
find_package(GLUT)
#On Windows we use AntTweakBar/OpenCTM of dependencies, not compiled
IF(WIN32)
SUBDIRS (Zinri/Build gzstream/Build Numerical)
add_subdirectory(Zinri/Build)
add_subdirectory(gzstream/Build)
add_subdirectory(Numerical)
add_subdirectory(Assimp)
ELSE(WIN32)
add_custom_target( FakeTargetOpenCTM ALL "make"
WORKING_DIRECTORY ${CGoGN_ROOT_DIR}/ThirdParty/OpenCTM
COMMENT "Custom compile of OpenCTM" )
SUBDIRS (Zinri/Build gzstream/Build AntTweakBar Numerical Assimp/code )
add_subdirectory(Zinri/Build)
add_subdirectory(gzstream/Build)
add_subdirectory(AntTweakBar)
add_subdirectory(Numerical)
add_subdirectory(Assimp)
ENDIF(WIN32)
......@@ -26,7 +26,7 @@ IF(WIN32)
SET(LIBXML2_LIBRARIES xml2)
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/dependencies/include/)
LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/dependencies/lib/)
add_subdirectory(${CGoGN_ROOT_DIR}/ThirdParty ThirdParty)
# add_subdirectory(${CGoGN_ROOT_DIR}/ThirdParty ThirdParty)
add_subdirectory(Release)
add_subdirectory(${CGoGN_ROOT_DIR}/Apps Apps)
if (EXISTS "${CGoGN_ROOT_DIR}/Perso")
......@@ -43,7 +43,7 @@ ELSE(WIN32)
ELSE(IL_LIBRARIES)
SET(DEVIL_LIBRARIES ${IL_LIBRARY} ${ILU_LIBRARY} ${ILUT_LIBRARY})
ENDIF(IL_LIBRARIES)
add_subdirectory(${CGoGN_ROOT_DIR}/ThirdParty ThirdParty)
# add_subdirectory(${CGoGN_ROOT_DIR}/ThirdParty ThirdParty)
add_subdirectory(Release)
add_subdirectory(Debug)
add_subdirectory(${CGoGN_ROOT_DIR}/Apps Apps)
......
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