set (SOURCES main.cc module.cc moduleaction.cc installaction.cc removeaction.cc
	options.cc shellaction.cc messageaction.cc configfilereader.cc command.cc
	dependencyaction.cc)

add_executable (dfm ${SOURCES})
set_property(TARGET dfm PROPERTY CXX_STANDARD 11)

find_package (Boost 1.55.0 COMPONENTS system filesystem)
include_directories (${Boost_INCLUDE_DIRS})
target_link_libraries (dfm ${Boost_LIBRARIES})

# Installing
install (TARGETS dfm DESTINATION bin)

set (SOURCES main.cc module.cc moduleaction.cc installaction.cc removeaction.cc
	options.cc shellaction.cc messageaction.cc configfilereader.cc command.cc
	dependencyaction.cc)

add_executable (dfm ${SOURCES})
set_property(TARGET dfm PROPERTY CXX_STANDARD 11)

find_package (Boost 1.55.0 COMPONENTS system filesystem)
include_directories (${Boost_INCLUDE_DIRS})
target_link_libraries (dfm ${Boost_LIBRARIES})

add_definitions (-DBOOST_NO_CXX11_SCOPED_ENUMS)

# Installing
install (TARGETS dfm DESTINATION bin)

Boost stuff, might cause an error
Boost stuff, might cause an error

I tried building on FreeBSD and got some errors, so I did some
searching. Apparently I need to add -DBOOST_NO_CXX11_SCOPED_ENUMS to
the compiler to build with clang, so I added that with add_definitions
with CMake, and I'm not sure if that's the correct way to do it. I
tested it and it stills works fine on Gentoo and builds on FreeBSD now,
so I hope it was the correct thing to do.
