File: CMakeLists.txt

package info (click to toggle)
mathgl 1.9-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 17,496 kB
  • ctags: 3,647
  • sloc: cpp: 36,386; sh: 10,198; ansic: 1,093; makefile: 325; pascal: 52; python: 35
file content (43 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
if(use_gsl)
#	target_link_libraries(mgl ${GSL_LIB} ${GSL_CBLAS_LIB} )
	add_definitions(-DHAVE_GSL)
	include_directories(${GSL_INCLUDE_DIR})
else(use_gsl)
	add_definitions(-DNO_GSL)
endif(use_gsl)

add_executable(mgl2png mgl2png.cpp)
target_link_libraries(mgl2png mgl)

add_executable(mgl2eps mgl2eps.cpp)
target_link_libraries(mgl2eps mgl)

add_executable(mgl2svg mgl2svg.cpp)
target_link_libraries(mgl2svg mgl)

add_executable(mgl2cpp mgl2cpp.cpp)
target_link_libraries(mgl2cpp mgl)

install(
	TARGETS mgl2png mgl2eps mgl2svg mgl2cpp
	RUNTIME DESTINATION bin
)

if(use_gif)
add_executable(mgl2gif mgl2gif.cpp)
target_link_libraries(mgl2gif mgl)
install(
	TARGETS mgl2gif
	RUNTIME DESTINATION bin
)
endif(use_gif)

if(use_fltk)
add_executable(mglview mglview.cpp)
target_link_libraries(mglview mgl-fltk mgl)
install(
	TARGETS mglview
	RUNTIME DESTINATION bin
)
endif(use_fltk)