Skip to content

Commit

Permalink
Add marl::DAG - a AoT declarative task graph
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-clayton committed Jul 8, 2020
1 parent 1e8acb5 commit 18b220b
Show file tree
Hide file tree
Showing 4 changed files with 583 additions and 11 deletions.
14 changes: 9 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,18 @@ function(marl_set_target_options target)

# Enable all warnings
if(MSVC)
target_compile_options(${target} PRIVATE
"-W4"
"/wd4127" # conditional expression is constant
)
target_compile_options(${target} PRIVATE "-W4")
else()
target_compile_options(${target} PRIVATE "-Wall")
endif()

# Disable specific, pedantic warnings
if(MSVC)
target_compile_options(${target} PRIVATE "-D_CRT_SECURE_NO_WARNINGS")
target_compile_options(${target} PRIVATE
"-D_CRT_SECURE_NO_WARNINGS"
"/wd4127" # conditional expression is constant
"/wd4324" # structure was padded due to alignment specifier
)
endif()

# Treat all warnings as errors
Expand Down Expand Up @@ -276,6 +277,7 @@ if(MARL_BUILD_TESTS)
${MARL_SRC_DIR}/blockingcall_test.cpp
${MARL_SRC_DIR}/conditionvariable_test.cpp
${MARL_SRC_DIR}/containers_test.cpp
${MARL_SRC_DIR}/dag_test.cpp
${MARL_SRC_DIR}/defer_test.cpp
${MARL_SRC_DIR}/event_test.cpp
${MARL_SRC_DIR}/marl_test.cpp
Expand All @@ -289,12 +291,14 @@ if(MARL_BUILD_TESTS)
${MARL_SRC_DIR}/ticket_test.cpp
${MARL_SRC_DIR}/waitgroup_test.cpp
${MARL_GOOGLETEST_DIR}/googletest/src/gtest-all.cc
${MARL_GOOGLETEST_DIR}/googlemock/src/gmock-all.cc
)

set(MARL_TEST_INCLUDE_DIR
${MARL_GOOGLETEST_DIR}/googletest/include/
${MARL_GOOGLETEST_DIR}/googlemock/include/
${MARL_GOOGLETEST_DIR}/googletest/
${MARL_GOOGLETEST_DIR}/googlemock/
)

add_executable(marl-unittests ${MARL_TEST_LIST})
Expand Down
Loading

0 comments on commit 18b220b

Please sign in to comment.