summaryrefslogtreecommitdiff
path: root/src/libFLAC/ia32/CMakeLists.txt
blob: 96b1c74adc018bed8916a9e9a63f3e7577b31cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
add_compile_options(-I${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)