blob: 0236a395ca27cc530a725a4dbe3d5c314e28dee4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
cmake_minimum_required(VERSION 3.9)
#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)
|