lemon-project-template-glpk

comparison 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
comparison
equal deleted inserted replaced
5:6302ba4dbe66 6:151033071746
59 ${PROJECT_SOURCE_DIR} 59 ${PROJECT_SOURCE_DIR}
60 ${PROJECT_BINARY_DIR} 60 ${PROJECT_BINARY_DIR}
61 ${LEMON_INCLUDE_DIRS} 61 ${LEMON_INCLUDE_DIRS}
62 ) 62 )
63 63
64 ## Here we define an executable target. Its name is 'lemon-project' and 64 ADD_SUBDIRECTORY(src)
65 ## is compiled from 'main.cc'. You can add more source files separated
66 ## with whitespaces (including newlines). If you want to build more
67 ## executables, simple repeat (and edit) the following ADD_EXECUTABLE and
68 ## TARGET_LINK_LIBRARIES statements.
69
70 ADD_EXECUTABLE(lemon-project main.cc)
71 TARGET_LINK_LIBRARIES(lemon-project ${LEMON_LIBRARIES})
72
73 ## This tells cmake to install 'lemon-project' to $PREFIX/bin when
74 ## 'make install' is executed. You can give more targets separated
75 ## by whitespaces.
76
77 INSTALL(
78 TARGETS lemon-project
79 RUNTIME DESTINATION bin
80 COMPONENT bin
81 )
82 65
83 ## Sometimes MSVC overwhelms you with compiler warnings which are impossible to 66 ## Sometimes MSVC overwhelms you with compiler warnings which are impossible to
84 ## avoid. Then comment out these sections. Normally you won't need it as the 67 ## avoid. Then comment out these sections. Normally you won't need it as the
85 ## LEMON include headers suppress these warnings anyway. 68 ## LEMON include headers suppress these warnings anyway.
86 69