mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-06 08:11:12 +00:00
renamed c_tools to c_src and moved zobov to that directory
This commit is contained in:
parent
50ad2d6d73
commit
3203c24ec5
48 changed files with 3 additions and 4 deletions
26
c_src/jozov2/CMakeLists.txt
Normal file
26
c_src/jozov2/CMakeLists.txt
Normal file
|
@ -0,0 +1,26 @@
|
|||
function(omp_add_flags TARGET LANG)
|
||||
if(OPENMP_FOUND)
|
||||
if(NOT LANG)
|
||||
get_target_property(LANG ${TARGET} LINKER_LANGUAGE)
|
||||
endif()
|
||||
if(LANG MATCHES "C(XX)?")
|
||||
set_property(TARGET ${TARGET} APPEND
|
||||
PROPERTY COMPILE_FLAGS ${OpenMP_${LANG}_FLAGS})
|
||||
set_property(TARGET ${TARGET} APPEND
|
||||
PROPERTY LINK_FLAGS ${OpenMP_${LANG}_FLAGS})
|
||||
else()
|
||||
message(WARNING "omp_add_flags: target '${TARGET}'"
|
||||
" link language '${LANG}' is not supported")
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
add_executable(jozov2 jozov2.cpp jozov2_io.cpp jozov2_zones.cpp jozov2_watershed.cpp findrtop.c)
|
||||
|
||||
if (ENABLE_OPENMP)
|
||||
Find_Package(OpenMP)
|
||||
omp_add_flags(jozov2 CXX)
|
||||
add_definitions(-DOPENMP)
|
||||
ENDIF(ENABLE_OPENMP)
|
||||
|
||||
install(TARGETS jozov2 DESTINATION ${VIDE_BIN})
|
Loading…
Add table
Add a link
Reference in a new issue