diff options
author | Marc-André Moreau <marcandre.moreau@gmail.com> | 2011-11-12 21:24:55 +0400 |
---|---|---|
committer | Marc-André Moreau <marcandre.moreau@gmail.com> | 2011-11-12 21:24:55 +0400 |
commit | b3b49134bab92bd21b36b66add771631191688dc (patch) | |
tree | ca63eba425fe437d9fb836423b50211de57cc6db /CMakeLists.txt | |
parent | 2117309a62b3915cc36743e4df062f2836b48df1 (diff) |
cmake: improve config.h.in
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aa63061d1..b6a76e716 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,8 +28,17 @@ include(CheckCCompilerFlag) set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/) -include_directories(${CMAKE_CURRENT_BINARY_DIR}) -include_directories(${CMAKE_SOURCE_DIR}/include) +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release") +endif() + +if(NOT DEFINED CMAKE_INSTALL_LIBDIR) + set(CMAKE_INSTALL_LIBDIR "lib") +endif() + +if(NOT DEFINED CMAKE_INSTALL_BINDIR) + set(CMAKE_INSTALL_BINDIR "bin") +endif() check_include_files(sys/param.h HAVE_SYS_PARAM_H) check_include_files(sys/socket.h HAVE_SYS_SOCKET_H) @@ -38,6 +47,14 @@ check_include_files(fcntl.h HAVE_FCNTL_H) check_include_files(unistd.h HAVE_UNISTD_H) check_include_files(sys/un.h HAVE_SYS_UN_H) +include_directories(${CMAKE_CURRENT_BINARY_DIR}) +include_directories(${CMAKE_SOURCE_DIR}/include) + +set(REMMINA_VERSION "0.9.99.1") +set(REMMINA_DATADIR "${CMAKE_INSTALL_PREFIX}/share/remmina") +set(REMMINA_LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/remmina") +set(REMMINA_PLUGINDIR "${CMAKE_INSTALL_PREFIX}/share/remmina") + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) add_subdirectory(remmina) |