bla
[platform/core/system/sessiond.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.16)
2 project(sessiond LANGUAGES C CXX)
3
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 "")
7
8 add_subdirectory(libsessiond)
9 add_subdirectory(sessiond)
10
11 enable_testing()
12
13 #set ON if want run libsessiond test
14 option(ENABLE_LIB_TESTS "Run libsessiond unit tests after build" OFF)
15 if(ENABLE_LIB_TESTS)
16         find_package(GTest REQUIRED)
17         include(CTest)
18         add_subdirectory(libsessiond/test)
19 endif(ENABLE_LIB_TESTS)
20
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)
25         include(CTest)
26         add_subdirectory(sessiond/test)
27 endif(ENABLE_SESSIOND_TESTS)