comparison libfdproto/CMakeLists.txt @ 1562:6219359a36a9 default tip

Merge latest changes from proposed branch
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 21 Jun 2021 19:08:18 +0800
parents 699c3fb0c57b
children
comparison
equal deleted inserted replaced
1558:932fca1cbbe4 1562:6219359a36a9
1 # Name of the subproject 1 # Name of the subproject
2 Project("libfdproto" C) 2 Project("libfdproto" C)
3 3
4 # Configuration for newer cmake 4 # Configuration for newer cmake
5 cmake_policy(VERSION 2.6) 5 cmake_policy(VERSION 2.8.12)
6 if (POLICY CMP0022)
7 cmake_policy(SET CMP0022 OLD)
8 endif (POLICY CMP0022)
9 6
10 # List of source files for the library 7 # List of source files for the library
11 SET(LFDPROTO_SRC 8 SET(LFDPROTO_SRC
12 fdproto-internal.h 9 fdproto-internal.h
13 dictionary.c 10 dictionary.c
28 25
29 26
30 # Save the list of files for testcases in the core's directory 27 # Save the list of files for testcases in the core's directory
31 SET(LFDPROTO_SRC ${LFDPROTO_SRC} PARENT_SCOPE) 28 SET(LFDPROTO_SRC ${LFDPROTO_SRC} PARENT_SCOPE)
32 29
33 # Include path
34 INCLUDE_DIRECTORIES(${LFDPROTO_INCLUDES})
35
36 # Build as a shared library 30 # Build as a shared library
37 ADD_LIBRARY(libfdproto SHARED ${LFDPROTO_SRC}) 31 ADD_LIBRARY(libfdproto SHARED ${LFDPROTO_SRC})
32
33 # Include path
34 TARGET_INCLUDE_DIRECTORIES(libfdproto PRIVATE /a/b/c ${LFDPROTO_INCLUDES})
38 35
39 ADD_DEPENDENCIES(libfdproto version_information) 36 ADD_DEPENDENCIES(libfdproto version_information)
40 37
41 # Avoid the liblib name, and set the version 38 # Avoid the liblib name, and set the version
42 SET_TARGET_PROPERTIES(libfdproto PROPERTIES 39 SET_TARGET_PROPERTIES(libfdproto PROPERTIES
"Welcome to our mercurial repository"