You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
764 B

cmake_minimum_required (VERSION 2.6)
project (PROJECT_QGRAPH)
set ( CMAKE_CXX_COMPILER "/usr/bin/g++-4.9.0")
set (CXX_FLAGS "-Wall -Wextra -pedantic -Wshadow "
"-Wpointer-arith -Wcast-qual "
"-ggdb "
"--std=c++0x " )
add_definitions( ${CXX_FLAGS} )
FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE(${QT_USE_FILE})
QT4_WRAP_CPP(qtgraph_HEADERS_MOC
# node.hpp
# edge.hpp
graphwidget.hpp)
include_directories(
../
/usr/include/libxml2
)
add_executable (qtgraph
main.cpp
edge.cpp
node.cpp
graphwidget.cpp
${qtgraph_HEADERS_MOC} )
target_link_libraries ( qtgraph ${QT_LIBRARIES} xml2 )
add_custom_target (clean2
COMMAND
make clean &&
find -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} \\+ &&
rm Makefile &&
rm moc_*
)