2 # Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License
19 # @file CMakeLists.txt
20 # @author Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
25 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/api)
28 ${CMAKE_CURRENT_SOURCE_DIR}/lorem.c
29 ${CMAKE_CURRENT_SOURCE_DIR}/misc.c
32 FUNCTION(BUILD_EXAMPLE EXAMPLE_NAME SOURCE_FILE)
33 ADD_EXECUTABLE(${EXAMPLE_NAME}
34 ${CMAKE_CURRENT_SOURCE_DIR}/${SOURCE_FILE}
37 TARGET_LINK_LIBRARIES(${EXAMPLE_NAME} ${PROJECT_NAME})
38 INSTALL(TARGETS ${EXAMPLE_NAME}
40 PERMISSIONS OWNER_READ
48 ENDFUNCTION(BUILD_EXAMPLE)
50 BUILD_EXAMPLE("owl-example-digest" digest.c)
51 BUILD_EXAMPLE("owl-example-encrypt" encrypt.c)
52 BUILD_EXAMPLE("owl-example-encrypt-gcm" encrypt_aes_gcm.c)
53 BUILD_EXAMPLE("owl-example-sign" sign.c)
54 BUILD_EXAMPLE("owl-example-key-exchange" key_exchange.c)
55 BUILD_EXAMPLE("owl-example-test" test.c)