forked from bnoordhuis/bspc
-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
19 lines (17 loc) · 986 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 2.8.9)
project (bspc)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Dstricmp=strcasecmp -DCom_Memcpy=memcpy -DCom_Memset=memset \
-DMAC_STATIC= -DQDECL= -DBSPC -D_FORTIFY_SOURCE=2 \
-I. -Ideps -Wall -std=gnu11 -Wsuggest-attribute=noreturn \
-Wsuggest-attribute=format -ffast-math")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_DEBUG} -g -O1")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_RELEASE} -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dstricmp=strcasecmp -DCom_Memcpy=memcpy -DCom_Memset=memset \
-DMAC_STATIC= -DQDECL= -DBSPC -D_FORTIFY_SOURCE=2 \
-I. -Ideps -std=c++11 -Wall -Wsuggest-attribute=noreturn \
-Wsuggest-attribute=format -ffast-math")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_DEBUG} -g -O1")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_RELEASE} -O3")
file(GLOB SOURCES "*.c" "*.cpp" "deps/*/*.c")
add_executable(bspc ${SOURCES})
target_link_libraries( bspc m pthread)