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 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 Timm Fitschen <t.fitschen@indiscale.com>
# Copyright (C) 2021 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
cmake_minimum_required(VERSION 3.13) 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." DESCRIPTION "Integration tests for the C++ client libraries of the CaosDB project which run against the CaosDB server."
LANGUAGES CXX) 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 Timm Fitschen <t.fitschen@indiscale.com>
# Copyright (C) 2021 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
...@@ -27,7 +27,7 @@ set(test_cases ...@@ -27,7 +27,7 @@ set(test_cases
test_list_properties test_list_properties
test_properties test_properties
test_transaction test_transaction
test_ccaosdb test_clinkahead
test_issues test_issues
test_user test_user
test_select test_select
...@@ -102,7 +102,7 @@ endif() ...@@ -102,7 +102,7 @@ endif()
# add special cmake functions for gtest # add special cmake functions for gtest
include(GoogleTest REQUIRED) include(GoogleTest REQUIRED)
find_package(caosdb) find_package(linkahead)
find_package(GTest) find_package(GTest)
find_package(gRPC) find_package(gRPC)
find_package(protobuf) find_package(protobuf)
...@@ -114,11 +114,8 @@ foreach (i RANGE "${len_test_cases}") ...@@ -114,11 +114,8 @@ foreach (i RANGE "${len_test_cases}")
list(GET test_cases ${i} test_case_name) list(GET test_cases ${i} test_case_name)
add_executable(${test_case_name} ${test_case_name}.cpp) add_executable(${test_case_name} ${test_case_name}.cpp)
target_link_libraries(${test_case_name} PRIVATE 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} target_include_directories(${test_case_name}
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
if(LINTING) if(LINTING)
...@@ -129,5 +126,5 @@ foreach (i RANGE "${len_test_cases}") ...@@ -129,5 +126,5 @@ foreach (i RANGE "${len_test_cases}")
endif() endif()
gtest_discover_tests(${test_case_name} gtest_discover_tests(${test_case_name}
PROPERTIES PROPERTIES
LABELS "caosdb-cpplib-int-tests") LABELS "linkahead-cpplib-int-tests")
endforeach () 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 Timm Fitschen <t.fitschen@indiscale.com>
* Copyright (C) 2021 IndiScale GmbH <info@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