29 lines
481 B
CMake
29 lines
481 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(LiteGoCompiler)
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w -O3 -g")
|
|
|
|
|
|
# library in subdirectory
|
|
add_subdirectory(antlr)
|
|
add_subdirectory(src)
|
|
|
|
|
|
# excutable
|
|
add_executable(LiteGoCompiler main.cpp)
|
|
|
|
target_include_directories(LiteGoCompiler
|
|
PUBLIC
|
|
${CMAKE_SOURCE_DIR}/include
|
|
)
|
|
|
|
target_link_libraries(LiteGoCompiler
|
|
PUBLIC
|
|
common
|
|
icg
|
|
tcg
|
|
)
|