mirror of
https://github.com/gelldur/EventBus.git
synced 2025-01-14 01:07:59 +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
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user