CMakeLists.txt 469 Bytes
Newer Older
1
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
2
add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/)
Vitaliy Kirsanov's avatar
Vitaliy Kirsanov committed
3
4
5
6
7
8
9
10
11
12
13

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()

14
add_library(FLAC-asm OBJECT
Vitaliy Kirsanov's avatar
Vitaliy Kirsanov committed
15
16
17
    cpu_asm.nasm
    fixed_asm.nasm
    lpc_asm.nasm)