diff options
author | Jacek Kryszyn <j.kryszyn@samsung.com> | 2023-07-28 16:25:55 +0200 |
---|---|---|
committer | Jacek Kryszyn <j.kryszyn@samsung.com> | 2023-07-28 16:25:55 +0200 |
commit | bb3025f25201e59d0a7ba7d8bec2578480ed0689 (patch) | |
tree | 4e16d90a0f94efc9b3f8970d825dfaa718e45c8c /lib/base/CMakeLists.txt | |
parent | 3241cf203afc344273e5f6cc3d5ab40500717b5d (diff) | |
download | dynpart-tools-bb3025f25201e59d0a7ba7d8bec2578480ed0689.tar.gz dynpart-tools-bb3025f25201e59d0a7ba7d8bec2578480ed0689.tar.bz2 dynpart-tools-bb3025f25201e59d0a7ba7d8bec2578480ed0689.zip |
lpmake is built using cmake. libraries added as subdirectories. static build
Diffstat (limited to 'lib/base/CMakeLists.txt')
-rw-r--r-- | lib/base/CMakeLists.txt | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/base/CMakeLists.txt b/lib/base/CMakeLists.txt new file mode 100644 index 0000000..c71485f --- /dev/null +++ b/lib/base/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required(VERSION 3.22) + +project(base VERSION 1.0.0 DESCRIPTION "base") + +add_library(base STATIC + abi_compatibility.cpp + chrono_utils.cpp + file.cpp + liblog_symbols.cpp + logging.cpp + mapped_file.cpp + parsebool.cpp + parsenetaddress.cpp + process.cpp + properties.cpp + stringprintf.cpp + strings.cpp + threads.cpp + test_utils.cpp + errors_unix.cpp +) + +target_include_directories(base PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR}/../include +) + +set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION}) + +set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) + +target_compile_options(base PRIVATE -std=c++17) + +#cd ../base +#case "$OSTYPE" in +# linux* | darwin*) +# src="errors_unix.cpp" +# ;; +# *) +# src="errors_windows.cpp utf8.cpp" +# ;; +#esac +#$CC -std=c++17 -I../include ${CFLAGS} -c abi_compatibility.cpp chrono_utils.cpp file.cpp liblog_symbols.cpp logging.cpp mapped_file.cpp parsebool.cpp parsenetaddress.cpp process.cpp properties.cpp stringprintf.cpp strings.cpp threads.cpp test_utils.cpp ${src} +#$AR rcs ../lib/libbase.a *.o +#rm -r *.o +#unset src
\ No newline at end of file |