File: CMakeLists.txt

package info (click to toggle)
libofx 1%3A0.10.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,644 kB
  • sloc: cpp: 8,101; ansic: 2,298; xml: 265; makefile: 224; sh: 43
file content (28 lines) | stat: -rw-r--r-- 791 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
# SPDX-FileCopyrightText: 2022 Dawid Wróbel <me@dawidwrobel.com>
# SPDX-License-Identifier: GPL-2.0-or-later

set(ofxconnect_SRCS
        cmdline.c
        ofxconnect.cpp
        ofxpartner.cpp
        nodeparser.cpp
)

# required by libxml++
if (CMAKE_CXX_STANDARD LESS 11)
    set(CMAKE_CXX_STANDARD 11)
endif()

add_executable(ofxconnect ${ofxconnect_SRCS})
target_link_libraries(ofxconnect libofx CURL::libcurl PkgConfig::LIBXMLPP)
target_compile_definitions(ofxconnect PRIVATE
        CMDLINE_PARSER_PACKAGE="ofxconnect"
        CMDLINE_PARSER_PACKAGE_NAME="ofxconnect"
        CMDLINE_PARSER_VERSION="${LIBOFX_VERSION_RELEASE_STRING}"
)

if (TARGET getopt)
    target_link_libraries(ofxconnect getopt)
endif ()

install(TARGETS ofxconnect RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})