21 lines
521 B
CMake
21 lines
521 B
CMake
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
|
|
|
project(aic-authorization LANGUAGES C)
|
|
|
|
# Suppress cmake unused warning
|
|
set(ignore ${BUILD_DOC} ${BUILD_DOCS} ${BUILD_EXAMPLE} ${BUILD_EXAMPLES}
|
|
${BUILD_SHARED_LIBS}${BUILD_TEST}${BUILD_TESTING}${BUILD_TESTS})
|
|
|
|
add_compile_options(-Wall)
|
|
|
|
# Install
|
|
# install directories
|
|
if(NOT CMAKE_INSTALL_PREFIX)
|
|
message(FATAL_ERROR "ERROR: CMAKE_INSTALL_PREFIX is not defined.")
|
|
endif()
|
|
include(GNUInstallDirs)
|
|
|
|
add_subdirectory(authorization)
|
|
# sub lic_test
|
|
add_subdirectory(test)
|