File tree Expand file tree Collapse file tree 4 files changed +722
-355
lines changed
Expand file tree Collapse file tree 4 files changed +722
-355
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ MESSAGE(STATUS "CMAKE_ROOT: " ${CMAKE_ROOT})
44# Project name
55project (Cpp-TaskFlow)
66
7+ # Enable memory test
8+ include (CTest )
9+
710# Turn on the verbose
811set (CMAKE_VERBOSE_MAKEFILE ON )
912
@@ -19,7 +22,7 @@ message(STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS})
1922message (STATUS "CMAKE_EXE_LINKER_FLAGS: " ${CMAKE_EXE_LINKER_FLAGS} )
2023
2124# The version number
22- set (TASKFLOW_MAJOR_VERSION "1 " )
25+ set (TASKFLOW_MAJOR_VERSION "2 " )
2326set (TASKFLOW_MINOR_VERSION "0" )
2427
2528# add the binary tree to the search path for include files
@@ -54,9 +57,14 @@ list(APPEND EXAMPLE_EXE_LINKER_FLAGS OpenMP::OpenMP_CXX)
5457message (STATUS "EXAMPLE_CXX_FLAGS: " ${EXAMPLE_CXX_FLAGS} )
5558message (STATUS "EXAMPLE_EXE_LINKER_FLAGS: " ${EXAMPLE_EXE_LINKER_FLAGS} )
5659
60+
61+
5762add_executable (simple example/simple.cpp )
5863target_link_libraries (simple ${EXAMPLE_EXE_LINKER_FLAGS} )
5964
65+ add_executable (subflow example/subflow.cpp )
66+ target_link_libraries (subflow ${EXAMPLE_EXE_LINKER_FLAGS} )
67+
6068add_executable (debug example/debug.cpp )
6169target_link_libraries (debug ${EXAMPLE_EXE_LINKER_FLAGS} )
6270
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ void taskflow(const std::vector<size_t>& D) {
195195
196196 auto tbeg = std::chrono::steady_clock::now ();
197197
198- using builder_t = typename tf::Taskflow:: Task;
198+ using builder_t = typename tf::Task;
199199
200200 tf::Taskflow tf;
201201
You can’t perform that action at this time.
0 commit comments