forked from jegonzal/PowerGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (20 loc) · 737 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
26 lines (20 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
project(GraphLab)
# link_libraries(${Boost_LIBRARIES})
# link_libraries(${GraphLab_LIBRARIES})
macro(add_all_subdirectories retval curdir)
file(GLOB sub-dir RELATIVE ${curdir} *)
set(list_of_dirs "")
foreach(dir ${sub-dir})
if(IS_DIRECTORY ${curdir}/${dir})
STRING(SUBSTRING ${dir} 0 1 firstchar)
if(${firstchar} STREQUAL "." OR ${firstchar} STREQUAL "_" )
else(${firstchar} STREQUAL "." OR ${firstchar} STREQUAL "_")
set(list_of_dirs ${list_of_dirs} ${dir})
message(STATUS "Detected App: " ${dir})
add_subdirectory(${dir})
endif()
endif()
endforeach()
set(${retval} ${list_of_dirs})
endmacro()
add_all_subdirectories(retval, ${CMAKE_CURRENT_SOURCE_DIR})