no need to export anything if MOMO_BUILD_AS_LIBRARY

This commit is contained in:
Elias Bachaalany
2025-01-12 11:56:11 -08:00
parent c58abdc5fe
commit 051e7a77a7
2 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,12 @@ cmake_minimum_required(VERSION 3.26.4)
option(MOMO_ENABLE_SANITIZER "Enable sanitizer" OFF)
option(MOMO_BUILD_AS_LIBRARY "Configure and Build the emulator as a shared library (without the samples and tests)" OFF)
if(MOMO_BUILD_AS_LIBRARY)
add_compile_definitions(MOMO_BUILD_AS_LIBRARY=1)
else()
add_compile_definitions(MOMO_BUILD_AS_LIBRARY=0)
endif()
##########################################
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)