Skip to content
Snippets Groups Projects
Commit 2a9d3221 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Rename CMakeLists.txt

parent c6c1b55e
No related branches found
No related tags found
2 merge requests!41Release 0.3.0,!36Rename cppinttest
This commit is part of merge request !36. Comments created here will be created in the context of that merge request.
#
# This file is a part of the CaosDB Project.
# This file is a part of the LinkAhead Project.
#
# Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com>
# Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
......@@ -20,7 +20,7 @@
cmake_minimum_required(VERSION 3.13)
project(libcaosdb_inttests
project(liblinkahead_inttests
DESCRIPTION "Integration tests for the C++ client libraries of the CaosDB project which run against the CaosDB server."
LANGUAGES CXX)
......
#
# This file is a part of the CaosDB Project.
# This file is a part of the LinkAhead Project.
#
# Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com>
# Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
......@@ -27,7 +27,7 @@ set(test_cases
test_list_properties
test_properties
test_transaction
test_ccaosdb
test_clinkahead
test_issues
test_user
test_select
......@@ -102,7 +102,7 @@ endif()
# add special cmake functions for gtest
include(GoogleTest REQUIRED)
find_package(caosdb)
find_package(linkahead)
find_package(GTest)
find_package(gRPC)
find_package(protobuf)
......@@ -114,11 +114,8 @@ foreach (i RANGE "${len_test_cases}")
list(GET test_cases ${i} test_case_name)
add_executable(${test_case_name} ${test_case_name}.cpp)
target_link_libraries(${test_case_name} PRIVATE
caosdb::caosdb gtest::gtest grpc::grpc protobuf::protobuf
linkahead::linkahead gtest::gtest grpc::grpc protobuf::protobuf
)
if("${CMAKE_BUILD_TYPE}" MATCHES "Debug")
target_link_libraries(${test_case_name} PRIVATE caosdb_grpc)
endif()
target_include_directories(${test_case_name}
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
if(LINTING)
......@@ -129,5 +126,5 @@ foreach (i RANGE "${len_test_cases}")
endif()
gtest_discover_tests(${test_case_name}
PROPERTIES
LABELS "caosdb-cpplib-int-tests")
LABELS "linkahead-cpplib-int-tests")
endforeach ()
/*
*
* This file is a part of the CaosDB Project.
* This file is a part of the LinkAhead Project.
*
* Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com>
* Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment