24 lines
741 B
CMake
24 lines
741 B
CMake
include (${project_cmake_dir}/Utils.cmake)
|
|
include (CheckCXXSourceCompiles)
|
|
|
|
include (${project_cmake_dir}/FindOS.cmake)
|
|
include (FindPkgConfig)
|
|
|
|
# Detect the architecture
|
|
include (${project_cmake_dir}/TargetArch.cmake)
|
|
target_architecture(ARCH)
|
|
message(STATUS "Building for arch: ${ARCH}")
|
|
|
|
########################################
|
|
# Include man pages stuff
|
|
include (${project_cmake_dir}/Ronn2Man.cmake)
|
|
add_manpage_target()
|
|
|
|
#################################################
|
|
# Macro to check for visibility capability in compiler
|
|
# Original idea from: https://gitorious.org/ferric-cmake-stuff/
|
|
macro (check_gcc_visibility)
|
|
include (CheckCXXCompilerFlag)
|
|
check_cxx_compiler_flag(-fvisibility=hidden GCC_SUPPORTS_VISIBILITY)
|
|
endmacro()
|