Commit f36eb42df35e95cfd8a6bfd77c0a43ae3764ad6a

Authored by Peter M. Groen
1 parent 6c0dd5b5

Add static build-switch

CMakeLists.txt
... ... @@ -2,11 +2,12 @@ cmake_minimum_required(VERSION 3.0)
2 2 project(osdev_logger)
3 3  
4 4 LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake )
5   -LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/versioning/cmake )
6 5  
7 6 include(projectheader)
8 7 project_header(osdev_logger)
9 8  
  9 +set(BUILD_STATIC "ON")
  10 +
10 11 add_subdirectory(src)
11 12 add_subdirectory(tests)
12 13  
... ...
src/CMakeLists.txt
... ... @@ -2,13 +2,14 @@ cmake_minimum_required(VERSION 3.12)
2 2 include(projectheader)
3 3 project_header(logger)
4 4  
  5 +set(BUILD_AS_STATIC "ON")
  6 +
5 7 include_directories( SYSTEM
6 8 )
7 9  
8 10 include(compiler)
9 11  
10 12 set(SRC_LIST
11   - #${CMAKE_CURRENT_SOURCE_DIR}/logger.cpp
12 13 ${CMAKE_CURRENT_SOURCE_DIR}/threadcontext.cpp
13 14 ${CMAKE_CURRENT_SOURCE_DIR}/log.cpp
14 15 )
... ...
  1 +Subproject commit 83d7bf32bbdfb50a077daaa1d4cc9d611570b93e
... ...
tests/CMakeLists.txt
1 1 cmake_minimum_required(VERSION 3.12)
2   -LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
  2 +LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake)
3 3  
4 4 include(projectheader)
5 5 project_header(test_logger)
... ...