# HG changeset patch # User Alpar Juttner # Date 1300820983 -3600 # Node ID c941f748eaa86117a5a6f5ff5847dd1143bdd2c5 # Parent b995b17cd52bc8d1b710b98fd9654b24ac4f837a Move sources to src/ diff -r b995b17cd52b -r c941f748eaa8 CMakeLists.txt --- a/CMakeLists.txt Tue Mar 22 19:51:48 2011 +0100 +++ b/CMakeLists.txt Tue Mar 22 20:09:43 2011 +0100 @@ -61,24 +61,7 @@ ${LEMON_INCLUDE_DIRS} ) -## Here we define an executable target. Its name is 'lemon-project' and -## is compiled from 'main.cc'. You can add more source files separated -## with whitespaces (including newlines). If you want to build more -## executables, simple repeat (and edit) the following ADD_EXECUTABLE and -## TARGET_LINK_LIBRARIES statements. - -ADD_EXECUTABLE(lemon-project main.cc) -TARGET_LINK_LIBRARIES(lemon-project ${LEMON_LIBRARIES}) - -## This tells cmake to install 'lemon-project' to $PREFIX/bin when -## 'make install' is executed. You can give more targets separated -## by whitespaces. - -INSTALL( - TARGETS lemon-project - RUNTIME DESTINATION bin - COMPONENT bin -) +ADD_SUBDIRECTORY(src) ## Sometimes MSVC overwhelms you with compiler warnings which are impossible to ## avoid. Then comment out these sections. Normally you won't need it as the diff -r b995b17cd52b -r c941f748eaa8 main.cc --- a/main.cc Tue Mar 22 19:51:48 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -/* -*- mode: C++; indent-tabs-mode: nil; -*- - * - * This file is a part of LEMON, a generic C++ optimization library. - * - * Copyright (C) 2003-2009 - * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport - * (Egervary Research Group on Combinatorial Optimization, EGRES). - * - * Permission to use, modify and distribute this software is granted - * provided that this copyright notice appears in all copies. For - * precise terms see the accompanying LICENSE file. - * - * This software is provided "AS IS" with no warranty of any kind, - * express or implied, and with no claim as to its suitability for any - * purpose. - * - */ - -#include - -///The main entry point -int main() -{ - lemon::ListGraph g; - g.addNode(); -} diff -r b995b17cd52b -r c941f748eaa8 src/CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/CMakeLists.txt Tue Mar 22 20:09:43 2011 +0100 @@ -0,0 +1,29 @@ +INCLUDE_DIRECTORIES( + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_BINARY_DIR}/src +) + +## Here we define an executable target. Its name is 'lemon-project' and +## is compiled from 'main.cc'. You can add more source files separated +## with whitespaces (including newlines). If you want to build more +## executables, simple repeat (and edit) the following ADD_EXECUTABLE and +## TARGET_LINK_LIBRARIES statements. + +ADD_EXECUTABLE(lemon-project + main.cc +) + +## This tells cmake to install 'lemon-project' to $PREFIX/bin when +## 'make install' is executed. You can give more targets separated +## by whitespaces. + +TARGET_LINK_LIBRARIES(lemon-project + ${LEMON_LIBRARIES} +) + +INSTALL( + TARGETS lemon-project + RUNTIME DESTINATION bin + COMPONENT bin +) diff -r b995b17cd52b -r c941f748eaa8 src/main.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main.cc Tue Mar 22 20:09:43 2011 +0100 @@ -0,0 +1,26 @@ +/* -*- mode: C++; indent-tabs-mode: nil; -*- + * + * This file is a part of LEMON, a generic C++ optimization library. + * + * Copyright (C) 2003-2009 + * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport + * (Egervary Research Group on Combinatorial Optimization, EGRES). + * + * Permission to use, modify and distribute this software is granted + * provided that this copyright notice appears in all copies. For + * precise terms see the accompanying LICENSE file. + * + * This software is provided "AS IS" with no warranty of any kind, + * express or implied, and with no claim as to its suitability for any + * purpose. + * + */ + +#include + +///The main entry point +int main() +{ + lemon::ListGraph g; + g.addNode(); +}