mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 06:02:22 +00:00
Add CMakeLists.txt
This commit is contained in:
parent
be64736dd4
commit
63c679ee81
2 changed files with 38 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -17,3 +17,6 @@ gmqcc
|
||||||
gmqpak
|
gmqpak
|
||||||
qcvm
|
qcvm
|
||||||
testsuite
|
testsuite
|
||||||
|
|
||||||
|
build/
|
||||||
|
.idea/
|
||||||
|
|
35
CMakeLists.txt
Normal file
35
CMakeLists.txt
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
project(gmqcc)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
|
||||||
|
|
||||||
|
set(SOURCE_FILES
|
||||||
|
algo.h
|
||||||
|
ast.cpp ast.h
|
||||||
|
code.cpp
|
||||||
|
conout.cpp
|
||||||
|
fold.cpp fold.h
|
||||||
|
ftepp.cpp
|
||||||
|
gmqcc.h
|
||||||
|
intrin.cpp intrin.h
|
||||||
|
ir.cpp
|
||||||
|
ir.h
|
||||||
|
lexer.cpp lexer.h
|
||||||
|
opts.cpp
|
||||||
|
parser.cpp parser.h
|
||||||
|
stat.cpp
|
||||||
|
utf8.cpp
|
||||||
|
util.cpp)
|
||||||
|
add_library(gmqcclib ${SOURCE_FILES})
|
||||||
|
|
||||||
|
add_executable(gmqcc main.cpp)
|
||||||
|
target_link_libraries(gmqcc gmqcclib)
|
||||||
|
|
||||||
|
add_executable(testsuite test.cpp)
|
||||||
|
target_link_libraries(testsuite gmqcclib)
|
||||||
|
|
||||||
|
add_executable(qcvm exec.cpp)
|
||||||
|
target_link_libraries(qcvm gmqcclib)
|
Loading…
Reference in a new issue