Skip to content

Commit

Permalink
rename root folder (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
petiaccja authored Feb 2, 2024
1 parent 3e6bebf commit 52274be
Show file tree
Hide file tree
Showing 51 changed files with 61 additions and 61 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.25)

project(async++)
project(asyncpp)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
option(ASYNCPP_BUILD_TESTS "Build tests." ON)
Expand Down Expand Up @@ -40,11 +40,11 @@ if (${ASYNCPP_BUILD_TESTS})
add_compile_definitions(ASYNCPP_BUILD_TESTS=1)
endif()

add_subdirectory(include/async++)
add_subdirectory(include/asyncpp)
add_subdirectory(src)
if (${ASYNCPP_BUILD_TESTS})
add_subdirectory(test)
endif()

install(TARGETS async++ DESTINATION "lib")
install(DIRECTORY "include/async++" DESTINATION "include")
install(TARGETS asyncpp DESTINATION "lib")
install(DIRECTORY "include/asyncpp" DESTINATION "include")
4 changes: 0 additions & 4 deletions include/async++/CMakeLists.txt

This file was deleted.

4 changes: 4 additions & 0 deletions include/asyncpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
add_library(asyncpp-headers INTERFACE)


target_include_directories(asyncpp-headers INTERFACE "${CMAKE_CURRENT_LIST_DIR}/..")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
add_library(async++)
add_library(asyncpp)

target_sources(async++
target_sources(asyncpp
PRIVATE
thread_pool.cpp
mutex.cpp
Expand All @@ -11,4 +11,4 @@ target_sources(async++
interleaving/state_tree.cpp
)

target_link_libraries(async++ async++-headers)
target_link_libraries(asyncpp asyncpp-headers)
8 changes: 4 additions & 4 deletions src/interleaving/runner.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <async++/interleaving/runner.hpp>
#include <async++/interleaving/sequence_point.hpp>
#include <async++/interleaving/sequencer.hpp>
#include <async++/interleaving/state_tree.hpp>
#include <asyncpp/interleaving/runner.hpp>
#include <asyncpp/interleaving/sequence_point.hpp>
#include <asyncpp/interleaving/sequencer.hpp>
#include <asyncpp/interleaving/state_tree.hpp>

#include <csignal>
#include <format>
Expand Down
4 changes: 2 additions & 2 deletions src/interleaving/sequencer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <async++/interleaving/sequence_point.hpp>
#include <async++/interleaving/sequencer.hpp>
#include <asyncpp/interleaving/sequence_point.hpp>
#include <asyncpp/interleaving/sequencer.hpp>

#include <cassert>

Expand Down
2 changes: 1 addition & 1 deletion src/interleaving/state_tree.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <async++/interleaving/state_tree.hpp>
#include <asyncpp/interleaving/state_tree.hpp>


namespace asyncpp::interleaving {
Expand Down
2 changes: 1 addition & 1 deletion src/mutex.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <async++/mutex.hpp>
#include <asyncpp/mutex.hpp>

#include <mutex>

Expand Down
2 changes: 1 addition & 1 deletion src/shared_mutex.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <async++/shared_mutex.hpp>
#include <asyncpp/shared_mutex.hpp>

#include <mutex>

Expand Down
2 changes: 1 addition & 1 deletion src/sleep.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <async++/sleep.hpp>
#include <asyncpp/sleep.hpp>

#include <condition_variable>
#include <mutex>
Expand Down
2 changes: 1 addition & 1 deletion src/thread_pool.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <async++/thread_pool.hpp>
#include <asyncpp/thread_pool.hpp>

#include <algorithm>
#include <format>
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ target_sources(test

find_package(Catch2 3 REQUIRED)
target_link_libraries(test Catch2::Catch2)
target_link_libraries(test async++)
target_link_libraries(test asyncpp)
2 changes: 1 addition & 1 deletion test/container/test_atomic_collection.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <async++/container/atomic_collection.hpp>
#include <asyncpp/container/atomic_collection.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/container/test_atomic_queue.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <async++/container/atomic_queue.hpp>
#include <asyncpp/container/atomic_queue.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/container/test_atomic_stack.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <async++/container/atomic_stack.hpp>
#include <asyncpp/container/atomic_stack.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
4 changes: 2 additions & 2 deletions test/helper_interleaving.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include "helper_schedulers.hpp"

#include <async++/interleaving/runner.hpp>
#include <async++/interleaving/sequence_point.hpp>
#include <asyncpp/interleaving/runner.hpp>
#include <asyncpp/interleaving/sequence_point.hpp>

#include <concepts>

Expand Down
6 changes: 3 additions & 3 deletions test/helper_schedulers.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <async++/container/atomic_stack.hpp>
#include <async++/promise.hpp>
#include <async++/scheduler.hpp>
#include <asyncpp/container/atomic_stack.hpp>
#include <asyncpp/promise.hpp>
#include <asyncpp/scheduler.hpp>

#include <cassert>

Expand Down
4 changes: 2 additions & 2 deletions test/interleaving/test_runner.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <async++/interleaving/runner.hpp>
#include <async++/interleaving/sequence_point.hpp>
#include <asyncpp/interleaving/runner.hpp>
#include <asyncpp/interleaving/sequence_point.hpp>

#include <functional>

Expand Down
6 changes: 3 additions & 3 deletions test/test_event.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "helper_interleaving.hpp"

#include <async++/event.hpp>
#include <async++/interleaving/runner.hpp>
#include <async++/task.hpp>
#include <asyncpp/event.hpp>
#include <asyncpp/interleaving/runner.hpp>
#include <asyncpp/task.hpp>

#include <functional>

Expand Down
2 changes: 1 addition & 1 deletion test/test_generator.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <async++/generator.hpp>
#include <asyncpp/generator.hpp>

#include <vector>

Expand Down
4 changes: 2 additions & 2 deletions test/test_join.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <async++/join.hpp>
#include <async++/task.hpp>
#include <asyncpp/join.hpp>
#include <asyncpp/task.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
8 changes: 4 additions & 4 deletions test/test_mutex.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <async++/interleaving/runner.hpp>
#include <async++/join.hpp>
#include <async++/mutex.hpp>
#include <async++/task.hpp>
#include <asyncpp/interleaving/runner.hpp>
#include <asyncpp/join.hpp>
#include <asyncpp/mutex.hpp>
#include <asyncpp/task.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
8 changes: 4 additions & 4 deletions test/test_shared_mutex.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <async++/interleaving/runner.hpp>
#include <async++/join.hpp>
#include <async++/shared_mutex.hpp>
#include <async++/task.hpp>
#include <asyncpp/interleaving/runner.hpp>
#include <asyncpp/join.hpp>
#include <asyncpp/shared_mutex.hpp>
#include <asyncpp/task.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
6 changes: 3 additions & 3 deletions test/test_shared_task.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "helper_interleaving.hpp"

#include <async++/interleaving/runner.hpp>
#include <async++/join.hpp>
#include <async++/shared_task.hpp>
#include <asyncpp/interleaving/runner.hpp>
#include <asyncpp/join.hpp>
#include <asyncpp/shared_task.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
6 changes: 3 additions & 3 deletions test/test_sleep.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <async++/join.hpp>
#include <async++/sleep.hpp>
#include <async++/task.hpp>
#include <asyncpp/join.hpp>
#include <asyncpp/sleep.hpp>
#include <asyncpp/task.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
4 changes: 2 additions & 2 deletions test/test_stream.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <async++/join.hpp>
#include <async++/stream.hpp>
#include <asyncpp/join.hpp>
#include <asyncpp/stream.hpp>

#include <vector>

Expand Down
6 changes: 3 additions & 3 deletions test/test_task.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "helper_interleaving.hpp"

#include <async++/interleaving/runner.hpp>
#include <async++/join.hpp>
#include <async++/task.hpp>
#include <asyncpp/interleaving/runner.hpp>
#include <asyncpp/join.hpp>
#include <asyncpp/task.hpp>

#include <catch2/catch_test_macros.hpp>

Expand Down
6 changes: 3 additions & 3 deletions test/test_thread_pool.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <async++/join.hpp>
#include <async++/task.hpp>
#include <async++/thread_pool.hpp>
#include <asyncpp/join.hpp>
#include <asyncpp/task.hpp>
#include <asyncpp/thread_pool.hpp>

#include <algorithm>
#include <array>
Expand Down

0 comments on commit 52274be

Please sign in to comment.