examples/pl-functions/CMakeLists.txt
author Dmitriy Morozov <dmitriy@mrzv.org>
Sun, 20 Dec 2009 10:43:00 -0800
branchdev
changeset 183 0ca59b0ebc47
parent 180 examples/grid/CMakeLists.txt@27508309a680
child 184 a5e726461d3f
permissions -rw-r--r--
Moved files around: lsvineyard.h -> include/topology, examples/grid -> examples/pl-functions

set							(targets						
							 test-grid2D 
							 test-grid2D-vineyard
							 combustion-vineyard)

if                          (use_dsrpdb)
    set                     (targets                    ${targets}
                            							pdbdistance-vineyard)
endif                       (use_dsrpdb)

if                              (CGAL_FOUND)
    # add_definitions             (${CGAL_CXX_FLAGS_INIT})
    add_definitions             (-frounding-math)
    include_directories         (${CGAL_INCLUDE_DIRS})

    foreach 					(t ${targets})
        add_executable			(${t} ${t}.cpp)
        target_link_libraries	(${t} ${libraries} ${CGAL_LIBRARY} ${dsrpdb_LIBRARY})
    endforeach 					(t ${targets})
    
    # Extra special for program_options
    add_executable			(pl-vineyard pl-vineyard.cpp)
    target_link_libraries   (pl-vineyard ${libraries} ${CGAL_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY})
endif                           (CGAL_FOUND)