From a970d40094aca5ce43e3bf91b9a5a2323c41ead8 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 2 May 2024 00:42:08 -0400 Subject: Convert ohmycal to a library --- src/CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 102a4e5..752f78e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,8 +2,8 @@ include_directories(${CMAKE_BINARY_DIR}/include) include_directories(${CMAKE_SOURCE_DIR}/include) include_directories(${PROJECT_BINARY_DIR}) -add_executable(omc - main.c +add_library(ohmycal STATIC + globals.c str.c strlist.c ini.c @@ -22,4 +22,13 @@ add_executable(omc rules.c docker.c ) + +add_executable(omc + omc_main.c +) +target_link_libraries(omc ohmycal) +add_executable(omc_indexer + omc_indexer.c +) +target_link_libraries(omc_indexer ohmycal) install(TARGETS omc RUNTIME) -- cgit