From 217854d400ecb4507be7ac5e441be6799f724c05 Mon Sep 17 00:00:00 2001 From: Peter M. Groen Date: Wed, 16 Aug 2023 02:52:45 +0200 Subject: [PATCH] Create library as a static lib --- CMakeLists.txt | 1 + src/CMakeLists.txt | 18 +++--------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a695db..e5f2cee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ include(projectheader) project_header(datatypes) set(REPOSITORY_PACKAGE_NAME ${PROJECT_NAME} CACHE STRING "Repository name for ${PROJECT_NAME}" FORCE) +set(BUILD_STATIC "ON") add_subdirectory(src) # Test applications for each component. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 23c2a8c..e9074b1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,30 +3,18 @@ LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake) include(projectheader) project_header(datatypes) -find_package( Qt5Core REQUIRED ) -find_package( Qt5Sql REQUIRED ) +set(BUILD_AS_STATIC "ON") -include(artifacts) - -#include_directories( SYSTEM -# ${Qt5Core_INCLUDE_DIRS} -# ${Qt5Sql_INCLUDE_DIRS} -#) +include_directories( SYSTEM +) include(compiler) -#include_directories( -#) - set(SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/Variant.h ${CMAKE_CURRENT_SOURCE_DIR}/Variant.cpp ) -#link_directories( -# ${CMAKE_BINARY_DIR}/lib -#) - include(library) add_libraries( ) -- libgit2 0.21.4