CMakeLists.txt 1.46 KB
Newer Older
Mccaskey, Alex's avatar
Mccaskey, Alex committed
1
2
3
4
5
6
7
8
9
10
11
12
# *******************************************************************************
# Copyright (c) 2017 UT-Battelle, LLC.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# and Eclipse Distribution License v.10 which accompany this distribution.
# The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
# and the Eclipse Distribution License is available at
# https://eclipse.org/org/documents/edl-v10.php
#
# Contributors:
#   Alexander J. McCaskey - initial API and implementation
# *******************************************************************************/
13
14
add_xacc_test(XACCAPI xacc)
target_include_directories(XACCAPITester PRIVATE ${CMAKE_BINARY_DIR})
15
add_xacc_test(CLIParser xacc)
16
add_xacc_test(Algorithm xacc)
Mccaskey, Alex's avatar
Mccaskey, Alex committed
17

18
19
add_xacc_test(Heterogeneous xacc)
target_compile_features(HeterogeneousTester PRIVATE cxx_std_14)
20

21
22
23
24
25
26
27
28
29
30
configure_file(InternalCompilerTester.in.cpp
               ${CMAKE_BINARY_DIR}/xacc/tests/InternalCompilerTester.cpp)

add_executable(InternalCompilerTester ${CMAKE_BINARY_DIR}/xacc/tests/InternalCompilerTester.cpp)
target_include_directories(InternalCompilerTester PRIVATE ${GTEST_INCLUDE_DIRS})
target_link_libraries(InternalCompilerTester PRIVATE xacc ${GTEST_LIBRARIES})
add_test(NAME xacc_InternalCompilerTester COMMAND InternalCompilerTester)
target_compile_features(InternalCompilerTester PRIVATE cxx_std_14)

#add_xacc_test(InternalCompiler xacc)