mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-28 21:05:53 +01:00
19 lines
382 B
CMake
19 lines
382 B
CMake
|
cmake_minimum_required(VERSION 2.8.7)
|
||
|
project(Ecc)
|
||
|
|
||
|
if(MSVC)
|
||
|
add_compile_options(/W4)
|
||
|
else()
|
||
|
add_compile_options(-Wall)
|
||
|
endif()
|
||
|
|
||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake")
|
||
|
include(ParserAndScanner)
|
||
|
|
||
|
include_directories(
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
)
|
||
|
|
||
|
add_parser_and_scanner("Parser" "Scanner")
|
||
|
add_executable(ecc Main.cpp Parser.cpp Parser.h Scanner.cpp)
|