lemon-project-template-glpk

diff CMakeLists.txt @ 7:c941f748eaa8

Move sources to src/
author Alpar Juttner <alpar@cs.elte.hu>
date Tue, 22 Mar 2011 20:09:43 +0100
parents 723af8fef529
children dda9b6665fde
line diff
     1.1 --- a/CMakeLists.txt	Tue Mar 22 19:51:48 2011 +0100
     1.2 +++ b/CMakeLists.txt	Tue Mar 22 20:09:43 2011 +0100
     1.3 @@ -61,24 +61,7 @@
     1.4    ${LEMON_INCLUDE_DIRS}
     1.5  )
     1.6  
     1.7 -## Here we define an executable target. Its name is 'lemon-project' and
     1.8 -## is compiled from 'main.cc'. You can add more source files separated
     1.9 -## with whitespaces (including newlines). If you want to build more
    1.10 -## executables, simple repeat (and edit) the following ADD_EXECUTABLE and
    1.11 -## TARGET_LINK_LIBRARIES statements.
    1.12 -
    1.13 -ADD_EXECUTABLE(lemon-project main.cc)
    1.14 -TARGET_LINK_LIBRARIES(lemon-project ${LEMON_LIBRARIES})
    1.15 -
    1.16 -## This tells cmake to install 'lemon-project' to $PREFIX/bin when
    1.17 -## 'make install' is executed. You can give more targets separated
    1.18 -## by whitespaces.
    1.19 -
    1.20 -INSTALL(
    1.21 -  TARGETS lemon-project
    1.22 -  RUNTIME DESTINATION bin
    1.23 -  COMPONENT bin
    1.24 -)
    1.25 +ADD_SUBDIRECTORY(src)
    1.26  
    1.27  ## Sometimes MSVC overwhelms you with compiler warnings which are impossible to
    1.28  ## avoid. Then comment out these sections. Normally you won't need it as the