satdump/src-interface/CMakeLists.txt
2023-09-18 07:48:47 -07:00

23 lines
621 B
CMake

cmake_minimum_required(VERSION 3.0.0)
include(CheckFunctionExists)
file(GLOB_RECURSE LIBSDR_CPPS *.cpp)
add_library(satdump_interface STATIC ${LIBSDR_CPPS})
target_include_directories(satdump_interface PUBLIC . ../src-core)
set_target_properties(satdump_interface PROPERTIES COMPILE_DEFINITIONS BUILDER_STATIC_DEFINE)
if(BUILD_ZIQ)
target_compile_definitions(satdump_interface PUBLIC BUILD_ZIQ="1")
endif()
if(BUILD_ZIQ2)
target_compile_definitions(satdump_interface PUBLIC BUILD_ZIQ2="1")
endif()
# Link against the core
target_link_libraries(satdump_interface PUBLIC satdump_core)
if(MSVC)
else()
endif()