this repo has no description
1# Copyright 2012 Wolfgang Thaller.
2#
3# This file is part of Retro68.
4#
5# Retro68 is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# Retro68 is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with Retro68. If not, see <http://www.gnu.org/licenses/>.
17
18# Look for bison.
19find_package(BISON)
20
21find_package(Boost REQUIRED COMPONENTS wave filesystem system thread regex program_options)
22
23include_directories(
24 ${CMAKE_CURRENT_SOURCE_DIR}
25 ${CMAKE_CURRENT_SOURCE_DIR}/ResourceFiles
26 ${CMAKE_CURRENT_BINARY_DIR}
27 ${Boost_INCLUDE_DIR}
28)
29
30add_subdirectory(ResourceFiles)
31
32BISON_TARGET(RezParser RezParser.yy ${CMAKE_CURRENT_BINARY_DIR}/RezParser.generated.cc)
33
34add_executable(Rez
35 ${CMAKE_CURRENT_BINARY_DIR}/RezParser.generated.cc
36
37 RezLexer.cc
38 RezLexerNextToken.cc
39
40 RezWorld.cc
41
42 ResourceDefinitions.cc
43
44 Expression.cc
45
46 ResourceCompiler.cc
47 Diagnostic.cc
48 Rez.cc
49)
50
51target_link_libraries(Rez $<TARGET_OBJECTS:ResourceFiles> ${Boost_LIBRARIES})
52