File: CMakeLists.txt

package info (click to toggle)
libsysactivity 0.5.4-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 736 kB
  • ctags: 922
  • sloc: ansic: 4,951; sh: 76; makefile: 31
file content (24 lines) | stat: -rw-r--r-- 744 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

cmake_minimum_required(VERSION 2.6.0)

project(libsysactivity C)
set(LIBSA_VERSION "0.5.4")
set(CMAKE_VERBOSE_MAKEFILE TRUE)
enable_testing()

if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
	set(CMAKE_INSTALL_PREFIX "/usr")
	message(STATUS "CMAKE_INSTALL_PREFIX is not set, using default value: ${CMAKE_INSTALL_PREFIX}")
endif (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)

	# Compilation parameters
add_definitions(-Wall)
include(CheckCCompilerFlag) # Checking if the visibility flag is available
check_c_compiler_flag("-fvisibility=hidden" HAS_VISIBILITY_FLAG)
if (HAS_VISIBILITY_FLAG)
	add_definitions(-fvisibility=hidden)
endif (HAS_VISIBILITY_FLAG)

add_subdirectory(src)
add_subdirectory(cmake)
add_subdirectory(test EXCLUDE_FROM_ALL)