update cmake to be sure vcg is included just one time
This commit is contained in:
parent
8dc26dbe93
commit
721dace0c5
|
|
@ -279,6 +279,7 @@ set(SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
if (VCG_HEADER_ONLY)
|
if (VCG_HEADER_ONLY)
|
||||||
|
if (NOT TARGET vcglib) # to be sure that vcglib target is created just one time
|
||||||
add_library(vcglib INTERFACE)
|
add_library(vcglib INTERFACE)
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
vcglib INTERFACE
|
vcglib INTERFACE
|
||||||
|
|
@ -287,6 +288,9 @@ if (VCG_HEADER_ONLY)
|
||||||
|
|
||||||
#just to show headers in ide
|
#just to show headers in ide
|
||||||
add_custom_target(vcglib_ide SOURCES ${VCG_HEADERS})
|
add_custom_target(vcglib_ide SOURCES ${VCG_HEADERS})
|
||||||
|
else()
|
||||||
|
message(STATUS "- VCGLib - jumped - already included")
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
#TODO make vcglib that includes all the wrap sources, checking everytime
|
#TODO make vcglib that includes all the wrap sources, checking everytime
|
||||||
# if the the required targets (e.g. qt, gl, glew...) exists
|
# if the the required targets (e.g. qt, gl, glew...) exists
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue