mirror of
https://github.com/gelldur/EventBus.git
synced 2025-01-13 16:58:02 +08:00
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:
parent
170690ae9d
commit
018a536147
@ -44,26 +44,25 @@ add_library(EventBus
|
||||
src/eventbus/AsyncEventBus.cpp include/eventbus/AsyncEventBus.h
|
||||
|
||||
# New version of EventBus 3.0
|
||||
include/dexode/EventBus.hpp
|
||||
include/dexode/eventbus/Listener.hpp
|
||||
src/dexode/eventbus/strategy/Protected.cpp include/dexode/eventbus/strategy/Protected.hpp
|
||||
include/dexode/eventbus/strategy/Transaction.hpp
|
||||
src/dexode/EventBus.hpp
|
||||
src/dexode/eventbus/Listener.hpp
|
||||
src/dexode/eventbus/strategy/Protected.cpp src/dexode/eventbus/strategy/Protected.hpp
|
||||
src/dexode/eventbus/strategy/Transaction.hpp
|
||||
)
|
||||
add_library(Dexode::EventBus ALIAS EventBus)
|
||||
|
||||
target_compile_features(EventBus PUBLIC cxx_std_17)
|
||||
|
||||
target_include_directories(EventBus PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/>
|
||||
$<INSTALL_INTERFACE:include/>
|
||||
PRIVATE lib/src/
|
||||
)
|
||||
|
||||
set(EventBus_PUBLIC_HEADERS
|
||||
include/dexode/EventBus.hpp
|
||||
include/dexode/eventbus/Listener.hpp
|
||||
include/dexode/eventbus/strategy/Protected.hpp
|
||||
include/dexode/eventbus/strategy/Transaction.hpp
|
||||
src/dexode/EventBus.hpp
|
||||
src/dexode/eventbus/Listener.hpp
|
||||
src/dexode/eventbus/strategy/Protected.hpp
|
||||
src/dexode/eventbus/strategy/Transaction.hpp
|
||||
)
|
||||
# Add definitions for targets
|
||||
# Values:
|
||||
|
Loading…
x
Reference in New Issue
Block a user