Revert "smartened up the source and build organization a bit"
[beacon-ss.git] / CMakeLists.txt
blobd6b51f418835eef006a3a5dfc0954217bc281530
2 PROJECT(beacon)
4 #if you don't want the full compiler output, remove the following line
5 SET(CMAKE_VERBOSE_MAKEFILE ON)
7 #add definitions, compiler switches, etc.
8 ADD_DEFINITIONS(-Wall -O3)
9 #ADD_DEFINITIONS(-Wall -g)
11 LIST(APPEND beacon_sources
12     beacon/event_loop.cpp
13     beacon/event_queue.cpp
14     beacon/detail/future_event_base.cpp
15     beacon/trackable.cpp
16     beacon/reference_countable.cpp
17     beacon/detail/quick_wait.cpp
18     beacon/detail/signal_base.cpp
21 INCLUDE_DIRECTORIES(. ./test)
23 LINK_DIRECTORIES(/usr/lib/)
25 #create the beacon shared lib
26 ADD_LIBRARY(beacon SHARED ${beacon_sources})
29 #create test executables
30 ADD_EXECUTABLE(event-loop-test event_loop_test.cpp)
31 TARGET_LINK_LIBRARIES(event-loop-test beacon atomic_ops boost_thread)
33 ADD_EXECUTABLE(fast-signal-test fast_signal_test.cpp)
34 TARGET_LINK_LIBRARIES(fast-signal-test beacon atomic_ops boost_thread boost_signals)