20 lines
550 B
CMake
20 lines
550 B
CMake
include_directories(${GMRF_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
|
set_directory_properties(PROPERTIES COMPILE_DEFINITIONS _GNU_SOURCE)
|
|
|
|
BISON_TARGET(mmss_config_parse config.y ${CMAKE_CURRENT_BINARY_DIR}/config.yy.cpp)
|
|
|
|
add_executable(mmss
|
|
config.cpp
|
|
context.cpp
|
|
event.cpp
|
|
gmrf.cpp
|
|
iface.cpp
|
|
lex.cpp
|
|
mmss.cpp
|
|
monitor_log.cpp
|
|
network.cpp
|
|
protocol.cpp
|
|
${BISON_mmss_config_parse_OUTPUTS}
|
|
)
|
|
target_link_libraries(mmss dl)
|
|
set_target_properties(mmss PROPERTIES COMPILE_FLAGS "-std=c++11 -Wall")
|