summaryrefslogtreecommitdiff
path: root/src/libFLAC/ia32/CMakeLists.txt
blob: 88dc69c87e3292f102d0ecb3bf319cefb9a61ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.12)

include_directories("${CMAKE_CURRENT_SOURCE_DIR}")

if(APPLE)
    add_compile_options(-dOBJ_FORMAT_macho)
elseif(WIN32)
    #add_compile_options(-d OBJ_FORMAT_win32)
    # FIXME the command above doesn't seem to work on Windows
    set(CMAKE_ASM_NASM_FLAGS -dOBJ_FORMAT_win32)
else()
    add_compile_options(-dOBJ_FORMAT_elf)
endif()

add_library(FLAC-asm OBJECT
    cpu_asm.nasm
    fixed_asm.nasm
    lpc_asm.nasm)