File: CMakeLists.txt

package info (click to toggle)
syslog-ng 4.8.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,456 kB
  • sloc: ansic: 177,631; python: 13,035; cpp: 11,611; makefile: 7,012; sh: 5,147; java: 3,651; xml: 3,344; yacc: 1,377; lex: 599; perl: 193; awk: 190; objc: 162
file content (32 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
if(NOT ENABLE_CPP)
  return()
endif()

# C++ code

set(RANDOM_CHOICE_GENERATOR_CPP_SOURCES
  random-choice-generator.cpp
  random-choice-generator.hpp
  random-choice-generator.h
)

add_module(
  TARGET random-choice-generator-cpp
  SOURCES ${RANDOM_CHOICE_GENERATOR_CPP_SOURCES}
  LIBRARY_TYPE STATIC
)

# C code

set(RANDOM_CHOICE_GENERATOR_SOURCES
  random-choice-generator-parser.c
  random-choice-generator-parser.h
)

add_module(
  TARGET random-choice-generator
  GRAMMAR random-choice-generator-grammar
  DEPENDS random-choice-generator-cpp
  SOURCES ${RANDOM_CHOICE_GENERATOR_SOURCES}
  LIBRARY_TYPE STATIC # STATIC: Built as part of a larger libexamples module
)