Commit 55a6c9aa238ffd4a528b7e738995322df688bba5

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