fix member binops on entity fields to generate STOREP, this fixes stuff like ent...
[xonotic/gmqcc.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8)
2 project(gmqcc)
3
4 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
5 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
6 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")
7 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
8
9 set(SOURCE_FILES
10     algo.h
11     ast.cpp ast.h
12     code.cpp
13     conout.cpp
14     fold.cpp fold.h
15     ftepp.cpp
16     gmqcc.h
17     intrin.cpp intrin.h
18     ir.cpp
19     ir.h
20     lexer.cpp lexer.h
21     opts.cpp
22     parser.cpp parser.h
23     stat.cpp
24     utf8.cpp
25     util.cpp)
26 add_library(gmqcclib ${SOURCE_FILES})
27
28 add_executable(gmqcc main.cpp)
29 target_link_libraries(gmqcc gmqcclib)
30
31 add_executable(testsuite test.cpp)
32 target_link_libraries(testsuite gmqcclib)
33
34 add_executable(qcvm exec.cpp)
35 target_link_libraries(qcvm gmqcclib)