lemon-project-template-glpk

diff src/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
children dda9b6665fde
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/CMakeLists.txt	Tue Mar 22 20:09:43 2011 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +INCLUDE_DIRECTORIES(
     1.5 +  ${CMAKE_SOURCE_DIR}
     1.6 +  ${CMAKE_SOURCE_DIR}/src
     1.7 +  ${CMAKE_BINARY_DIR}/src
     1.8 +)
     1.9 +
    1.10 +## Here we define an executable target. Its name is 'lemon-project' and
    1.11 +## is compiled from 'main.cc'. You can add more source files separated
    1.12 +## with whitespaces (including newlines). If you want to build more
    1.13 +## executables, simple repeat (and edit) the following ADD_EXECUTABLE and
    1.14 +## TARGET_LINK_LIBRARIES statements.
    1.15 +
    1.16 +ADD_EXECUTABLE(lemon-project
    1.17 +        main.cc
    1.18 +)
    1.19 +
    1.20 +## This tells cmake to install 'lemon-project' to $PREFIX/bin when
    1.21 +## 'make install' is executed. You can give more targets separated
    1.22 +## by whitespaces.
    1.23 +
    1.24 +TARGET_LINK_LIBRARIES(lemon-project
    1.25 +  ${LEMON_LIBRARIES}
    1.26 +)
    1.27 +
    1.28 +INSTALL(
    1.29 +  TARGETS lemon-project
    1.30 +  RUNTIME DESTINATION bin
    1.31 +  COMPONENT bin
    1.32 +)