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