-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathCMakeLists.txt
29 lines (27 loc) · 1.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cmake_minimum_required(VERSION 2.4)
project(aecm)
if (MSVC)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ")
else ()
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:fast /Gy /Oi /Oy /O2 /Ot /Zi /EHsc ")
endif ()
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
else ()
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -Wall -Wno-unused-variable")
else (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2")
endif (CMAKE_BUILD_TYPE STREQUAL "Debug")
endif ()
file(GLOB AECM_SRC
${CMAKE_CURRENT_LIST_DIR}/aecm/*.c
${CMAKE_CURRENT_LIST_DIR}/aecm/*.cc
)
#list(FILTER AECM_SRC EXCLUDE REGEX ".*aecm_core_c.cc$")
list(FILTER AECM_SRC EXCLUDE REGEX ".*aecm_core_neon.cc$")
list(FILTER AECM_SRC EXCLUDE REGEX ".*aecm_core_mips.cc$")
set(AECM_COMPILE_CODE ${AECM_SRC})
add_executable(aecm main.cc ${AECM_COMPILE_CODE})