-
Notifications
You must be signed in to change notification settings - Fork 175
/
Copy pathCMakeLists.txt
26 lines (18 loc) · 951 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
MESSAGE( STATUS "Looking for Avon" )
pkg_search_module( AVON avon )
IF( AVON_FOUND )
MESSAGE( STATUS ${INDENT} "Avon version ${AVON_VERSION} detected at ${AVON_PREFIX}" )
MESSAGE( STATUS " AVON_CFLAGS = ${AVON_CFLAGS}" )
MESSAGE( STATUS " AVON_LDFLAGS = ${AVON_LDFLAGS}" )
MESSAGE( STATUS " AVON_INCLUDE_DIRS = ${AVON_INCLUDE_DIRS}" )
MESSAGE( STATUS " AVON_LIBRARY_DIRS = ${AVON_LIBRARY_DIRS}" )
MESSAGE( STATUS "Configuring avonstage" )
include_directories( ${AVON_INCLUDE_DIRS} )
link_directories( ${AVON_LIBRARY_DIRS} )
add_executable( avonstage avonstage.cc )
target_link_libraries( avonstage stage ${AVON_LIBRARIES} )
set_target_properties( avonstage PROPERTIES LINK_FLAGS "${FLTK_LDFLAGS}" )
INSTALL(TARGETS avonstage RUNTIME DESTINATION bin )
ELSE( AVON_FOUND )
MESSAGE( STATUS ${INDENT} "Avon not detected. If Avon is installed but not detected, check your PKG_CONFIG_PATH." )
ENDIF( AVON_FOUND )