Move code from include/ to src/

I don't like to keep separate folders for public & private stuff. In my opinion this is "old"
approach. I like when header and module file are next to each other.

My choice. Installation will handle splitting public & private headers.
This commit is contained in:
Dawid Drozd 2019-09-14 16:05:21 +02:00
parent 170690ae9d
commit 018a536147
5 changed files with 9 additions and 10 deletions

View File

@ -44,26 +44,25 @@ add_library(EventBus
src/eventbus/AsyncEventBus.cpp include/eventbus/AsyncEventBus.h src/eventbus/AsyncEventBus.cpp include/eventbus/AsyncEventBus.h
# New version of EventBus 3.0 # New version of EventBus 3.0
include/dexode/EventBus.hpp src/dexode/EventBus.hpp
include/dexode/eventbus/Listener.hpp src/dexode/eventbus/Listener.hpp
src/dexode/eventbus/strategy/Protected.cpp include/dexode/eventbus/strategy/Protected.hpp src/dexode/eventbus/strategy/Protected.cpp src/dexode/eventbus/strategy/Protected.hpp
include/dexode/eventbus/strategy/Transaction.hpp src/dexode/eventbus/strategy/Transaction.hpp
) )
add_library(Dexode::EventBus ALIAS EventBus) add_library(Dexode::EventBus ALIAS EventBus)
target_compile_features(EventBus PUBLIC cxx_std_17) target_compile_features(EventBus PUBLIC cxx_std_17)
target_include_directories(EventBus PUBLIC target_include_directories(EventBus PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/>
$<INSTALL_INTERFACE:include/> $<INSTALL_INTERFACE:include/>
PRIVATE lib/src/
) )
set(EventBus_PUBLIC_HEADERS set(EventBus_PUBLIC_HEADERS
include/dexode/EventBus.hpp src/dexode/EventBus.hpp
include/dexode/eventbus/Listener.hpp src/dexode/eventbus/Listener.hpp
include/dexode/eventbus/strategy/Protected.hpp src/dexode/eventbus/strategy/Protected.hpp
include/dexode/eventbus/strategy/Transaction.hpp src/dexode/eventbus/strategy/Transaction.hpp
) )
# Add definitions for targets # Add definitions for targets
# Values: # Values: