lemon-project-template-glpk
annotate 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 |
rev | line source |
---|---|
alpar@7 | 1 INCLUDE_DIRECTORIES( |
alpar@7 | 2 ${CMAKE_SOURCE_DIR} |
alpar@7 | 3 ${CMAKE_SOURCE_DIR}/src |
alpar@7 | 4 ${CMAKE_BINARY_DIR}/src |
alpar@7 | 5 ) |
alpar@7 | 6 |
alpar@7 | 7 ## Here we define an executable target. Its name is 'lemon-project' and |
alpar@7 | 8 ## is compiled from 'main.cc'. You can add more source files separated |
alpar@7 | 9 ## with whitespaces (including newlines). If you want to build more |
alpar@7 | 10 ## executables, simple repeat (and edit) the following ADD_EXECUTABLE and |
alpar@7 | 11 ## TARGET_LINK_LIBRARIES statements. |
alpar@7 | 12 |
alpar@7 | 13 ADD_EXECUTABLE(lemon-project |
alpar@7 | 14 main.cc |
alpar@7 | 15 ) |
alpar@7 | 16 |
alpar@7 | 17 ## This tells cmake to install 'lemon-project' to $PREFIX/bin when |
alpar@7 | 18 ## 'make install' is executed. You can give more targets separated |
alpar@7 | 19 ## by whitespaces. |
alpar@7 | 20 |
alpar@7 | 21 TARGET_LINK_LIBRARIES(lemon-project |
alpar@7 | 22 ${LEMON_LIBRARIES} |
alpar@7 | 23 ) |
alpar@7 | 24 |
alpar@7 | 25 INSTALL( |
alpar@7 | 26 TARGETS lemon-project |
alpar@7 | 27 RUNTIME DESTINATION bin |
alpar@7 | 28 COMPONENT bin |
alpar@7 | 29 ) |