hurricane configuration

This commit is contained in:
Christophe Alexandre 2007-12-27 16:15:28 +00:00
parent 557dcb7638
commit 8395be1cc3
2 changed files with 16 additions and 2 deletions

View File

@ -5,9 +5,13 @@ cmake_minimum_required(VERSION 2.4.0)
set(CMAKE_MODULE_PATH "${HURRICANE_SOURCE_DIR}/cmake_modules/") set(CMAKE_MODULE_PATH "${HURRICANE_SOURCE_DIR}/cmake_modules/")
find_package(Qt4 REQUIRED) # find and setup Qt4 for this project find_package(Qt4 REQUIRED) # find and setup Qt4 for this project
FIND_PACKAGE(BISON REQUIRED) find_package(BISON REQUIRED)
FIND_PACKAGE(FLEX REQUIRED) find_package(FLEX REQUIRED)
add_subdirectory(hurricane) add_subdirectory(hurricane)
add_subdirectory(analogic) add_subdirectory(analogic)
add_subdirectory(figures) add_subdirectory(figures)
set(DEST_DIR "$ENV{DESTDIR}")
configure_file(${HURRICANE_SOURCE_DIR}/hurricane.pc.cmake hurricane.pc @ONLY)
install(FILES ${HURRICANE_BINARY_DIR}/hurricane.pc DESTINATION /share/pkgconfig)

View File

@ -0,0 +1,10 @@
prefix=@DEST_DIR@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
Name: hurricane
Description: Hurricane Libs
Version: 2.0.b
Libs: -L${libdir} -lhurricane
Cflags: -I${includedir}/hurricane