lemon-project-template-glpk
comparison CMakeLists.txt @ 11:4fc6ad2fb8a6
Test GLPK in src/main.cc
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Sun, 06 Nov 2011 21:43:29 +0100 |
parents | dda9b6665fde |
children |
comparison
equal
deleted
inserted
replaced
7:45e6975b3b07 | 8:efd57df61d27 |
---|---|
37 SET(INSTALL_DATA_DIR "data" CACHE STRING | 37 SET(INSTALL_DATA_DIR "data" CACHE STRING |
38 "Subdir for installing the map data") | 38 "Subdir for installing the map data") |
39 SET(INSTALL_EXAMPLES_DIR "examples" CACHE STRING | 39 SET(INSTALL_EXAMPLES_DIR "examples" CACHE STRING |
40 "Subdir for installing the examples") | 40 "Subdir for installing the examples") |
41 ENDIF(UNIX) | 41 ENDIF(UNIX) |
42 | |
43 # Configure GLPK. Typically, you don't want to modify it. | |
44 | |
45 SET(GLPK_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/deps/glpk/src CACHE STRING "") | |
46 SET(GLPK_LIBRARY glpk CACHE STRING "") | |
47 ADD_SUBDIRECTORY(deps/glpk) | |
42 | 48 |
43 ## The next part looks for LEMON. Typically, you don't want to modify it. | 49 ## The next part looks for LEMON. Typically, you don't want to modify it. |
44 ## | 50 ## |
45 ## First, it tries to use LEMON as a CMAKE subproject by looking for | 51 ## First, it tries to use LEMON as a CMAKE subproject by looking for |
46 ## it in the 'lemon' or 'deps/lemon' subdirectories or in directory | 52 ## it in the 'lemon' or 'deps/lemon' subdirectories or in directory |
80 | 86 |
81 INCLUDE_DIRECTORIES( | 87 INCLUDE_DIRECTORIES( |
82 ${PROJECT_SOURCE_DIR} | 88 ${PROJECT_SOURCE_DIR} |
83 ${PROJECT_BINARY_DIR} | 89 ${PROJECT_BINARY_DIR} |
84 ${LEMON_INCLUDE_DIRS} | 90 ${LEMON_INCLUDE_DIRS} |
91 ${PROJECT_SOURCE_DIR}/deps/glpk/src | |
92 ) | |
93 | |
94 LINK_DIRECTORIES( | |
95 ${CMAKE_BINARY_DIR}/glpk | |
85 ) | 96 ) |
86 | 97 |
87 IF(CMAKE_COMPILER_IS_GNUCXX) | 98 IF(CMAKE_COMPILER_IS_GNUCXX) |
88 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") | 99 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") |
89 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") | 100 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") |