Skip to content
Snippets Groups Projects
Commit 5b0bef05 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake]

Include config.h even if built ot-of-source.
Include static_assert_test to be build on test and not run.

[[Imported from SVN: r6586]]
parent 1537958a
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ find_package(SharedPtr)
# actually write the config.h file to disk
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
add_definitions(-DHAVE_CONFIG_H)
# add subdirectories to execute CMakeLIsts.txt there
......@@ -70,8 +71,11 @@ add_test(poolallocatortest dune/common/test/poolallocatortest)
add_test(shared_ptrtest dune/common/test/shared_ptrtest)
add_test(singletontest dune/common/test/singletontest)
add_test(sllisttest dune/common/test/sllisttest)
add_test(static_assert_test dune/common/test/static_assert_test)
add_test(static_assert_test_fail dune/common/test/static_assert_test_fail)
add_test(NAME static_assert_test
COMMAND ${CMAKE_COMMAND} --build . --target static_assert_test --config $<CONFIGURATION>)
add_test(NAME static_assert_test_fail
COMMAND ${CMAKE_COMMAND} --build . --target static_assert_test_fail --config $<CONFIGURATION>)
set_tests_properties(static_assert_test_fail PROPERTIES WILL_FAIL true)
add_test(streamtest dune/common/test/streamtest)
add_test(testfassign2 dune/common/test/testfassign2)
add_test(testfassign dune/common/test/testfassign)
......
......@@ -45,8 +45,8 @@ add_executable("poolallocatortest" poolallocatortest.cc)
add_executable("shared_ptrtest" shared_ptrtest.cc)
add_executable("singletontest" singletontest.cc)
add_executable("sllisttest" sllisttest.cc)
add_executable("static_assert_test" static_assert_test.cc)
#add_executable("static_assert_test_fail" static_assert_test_fail.cc)
add_executable("static_assert_test" EXCLUDE_FROM_ALL static_assert_test.cc)
add_executable("static_assert_test_fail" EXCLUDE_FROM_ALL static_assert_test_fail.cc)
add_executable("streamtest" streamtest.cc)
target_link_libraries("streamtest" "dunecommon")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment