cmake: Fix remaining compile issues

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2020-01-23 02:16:21 +01:00
parent acd4d4b356
commit 08713db947
4 changed files with 11 additions and 7 deletions
+7 -3
View File
@@ -52,7 +52,7 @@ endif()
# Define Project
project(
DataPath
datapath
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}.${VERSION_TWEAK}
)
set(PROJECT_FULL_NAME "DataPath IPC Library")
@@ -279,8 +279,12 @@ endif()
# Includes
target_include_directories(${PROJECT_NAME}
PRIVATE "source"
PUBLIC "include"
INTERFACE
"${PROJECT_SOURCE_DIR}/include"
PUBLIC
"${PROJECT_SOURCE_DIR}/include"
PRIVATE
"${PROJECT_SOURCE_DIR}/source"
)
# Defines
+1 -1
View File
@@ -33,7 +33,7 @@ namespace datapath {
* @param std::shared_ptr<datapath::isocket> Socket.
* @return void
*/
datapath::event<bool&, std::shared_ptr<datapath::isocket>> _on_accept;
datapath::event<bool&, std::shared_ptr<datapath::isocket>> on_accept;
public:
virtual datapath::error close() = 0;
+2 -2
View File
@@ -24,9 +24,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
namespace datapath {
class isocket {
public /*events*/:
datapath::event<const std::vector<char>&> _on_message;
datapath::event<const std::vector<char>&> on_message;
datapath::event<> _on_close;
datapath::event<> on_close;
public:
virtual bool good() = 0;
+1 -1
View File
@@ -25,7 +25,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <string>
#include <thread>
#include <vector>
#include "datapath.hpp"
#include <datapath.hpp>
#include "measurer.hpp"
static auto log_time = std::chrono::high_resolution_clock::now();