1 cmake_minimum_required(VERSION 3.16)
2 project(sessiond LANGUAGES C CXX)
4 # The following is needed, as we have both "sessiond" and "libsessiond" in our project,
5 # and we don't want "libsessiond" to become "liblibsessiond". That would be tragic.
6 set(CMAKE_SHARED_LIBRARY_PREFIX "")
8 add_subdirectory(libsessiond)
9 add_subdirectory(sessiond)
13 #set ON if want run libsessiond test
14 option(ENABLE_LIB_TESTS "Run libsessiond unit tests after build" OFF)
16 find_package(GTest REQUIRED)
18 add_subdirectory(libsessiond/test)
19 endif(ENABLE_LIB_TESTS)
21 #set ON if want run sessiond tests
22 option(ENABLE_SESSIOND_TESTS "Run sessiond unit tests after build" OFF)
23 if(ENABLE_SESSIOND_TESTS)
24 find_package(GTest REQUIRED)
26 add_subdirectory(sessiond/test)
27 endif(ENABLE_SESSIOND_TESTS)