提交 ecae6e63 编写于 作者: G gangliao 提交者: GitHub

Merge pull request #2126 from gangliao/new_tensor

Add Google style conventions in Majel
...@@ -25,6 +25,7 @@ addons: ...@@ -25,6 +25,7 @@ addons:
- python2.7-dev - python2.7-dev
- python-numpy - python-numpy
- python-wheel - python-wheel
- libboost-dev
- curl - curl
- swig - swig
- graphviz - graphviz
......
...@@ -21,7 +21,7 @@ else() ...@@ -21,7 +21,7 @@ else()
endif() endif()
########################### Build Majel ############################# ########################### Build Majel #############################
set(MAJEL_CXX_FILES place.cpp) set(MAJEL_CXX_FILES place.cc)
set(MAJEL_CUDA_FILES "") set(MAJEL_CUDA_FILES "")
if(CUDA_FOUND) if(CUDA_FOUND)
......
file(GLOB_RECURSE ALL_TEST_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.cpp" "*.cc") file(GLOB_RECURSE ALL_TEST_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.cc")
add_executable(majel_tests ${ALL_TEST_FILES}) add_executable(majel_tests ${ALL_TEST_FILES})
add_dependencies(majel_tests majel) add_dependencies(majel_tests majel)
target_link_libraries(majel_tests target_link_libraries(majel_tests
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${GTEST_LIBRARIES} ${GTEST_LIBRARIES}
${GTEST_MAIN_LIBRARIES}
majel majel
) )
add_test(majel_tests majel_tests) add_test(majel_tests majel_tests)
#include "gtest/gtest.h"
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册