Debian Codegraph @

cmake/tribits/examples/TribitsExampleProject/packages/simple_cxx/src/CMakeLists.txt

raw
1 #
2 # A) Package-specific configuration options
3 #
4
5 tribits_configure_file(${PACKAGE_NAME}_config.h)
6
7 #
8 # B) Define the header and source files (and include directories)
9 #
10
11 set(HEADERS "")
12 set(SOURCES "")
13
14 tribits_include_directories(${CMAKE_CURRENT_BINARY_DIR})
15 append_set(HEADERS
16 ${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}_config.h
17 )
18
19 tribits_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
20 append_set(HEADERS
21 SimpleCxx_HelloWorld.hpp
22 )
23 append_set(SOURCES
24 SimpleCxx_HelloWorld.cpp
25 )
26
27 #
28 # C) Define the targets for package's library(s)
29 #
30
31 tribits_add_library(
32 simplecxx
33 HEADERS ${HEADERS}
34 SOURCES ${SOURCES}
35 )
36
37 #
38 # D) Define an executable that gets installed
39 #
40
41 tribits_add_executable(simplecxx-helloworld NOEXEPREFIX NOEXESUFFIX
42 SOURCES SimpleCxx_HelloWorld_Prog.cpp
43 INSTALLABLE
44 )