-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
61 lines (48 loc) · 1.97 KB
/
CMakeLists.txt
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
add_library( gauxc_catch2 INTERFACE )
find_package( Catch2 CONFIG QUIET )
if( NOT Catch2_FOUND )
FetchContent_Declare(
catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
)
set(CATCH_BUILD_TESTING OFF CACHE BOOL "Build SelfTest project" FORCE)
set(CATCH_INSTALL_DOCS OFF CACHE BOOL "Install documentation alongside library" FORCE)
set(CATCH_INSTALL_HELPERS OFF CACHE BOOL "Install contrib alongside library" FORCE)
FetchContent_MakeAvailable( catch2 )
target_link_libraries( gauxc_catch2 INTERFACE Catch2::Catch2 )
else()
target_link_libraries( gauxc_catch2 INTERFACE Catch2::Catch2 )
endif()
#add_library( catch2_main STATIC ut_main.cxx)
#target_link_libraries( catch2_main PUBLIC gauxc_catch2 )
#
#add_executable( gauxc_moltypes_test moltypes_test.cxx )
#target_link_libraries( gauxc_moltypes_test PUBLIC gauxc catch2_main )
#
#add_executable( gauxc_grid_test grid_test.cxx )
#target_link_libraries( gauxc_grid_test PUBLIC gauxc catch2_main )
add_executable( gauxc_test
ut_main.cxx
moltypes_test.cxx
grid_test.cxx
molgrid_test.cxx
basisset_test.cxx
load_balancer_test.cxx
collocation.cxx
weights.cxx
standards.cxx
xc_integrator.cxx
basis/parse_basis.cxx
)
target_link_libraries( gauxc_test PUBLIC gauxc gauxc_catch2 )
#if( GAUXC_ENABLE_HIP )
# target_compile_options( gauxc_test PUBLIC -x c++ )
#endif()
set( GAUXC_REF_DATA_PATH "${PROJECT_SOURCE_DIR}/tests/ref_data" )
configure_file( ut_common.hpp.in ${PROJECT_BINARY_DIR}/tests/ut_common.hpp )
target_include_directories( gauxc_test PRIVATE ${PROJECT_BINARY_DIR}/tests )
target_include_directories( gauxc_test PRIVATE ${PROJECT_SOURCE_DIR}/tests )
add_executable( standalone_driver standalone_driver.cxx standards.cxx basis/parse_basis.cxx )
target_link_libraries( standalone_driver PUBLIC gauxc gauxc_catch2 )
target_include_directories( standalone_driver PRIVATE ${PROJECT_BINARY_DIR}/tests )
target_include_directories( standalone_driver PRIVATE ${PROJECT_SOURCE_DIR}/tests )