Add separate CMakeLists.txt files for mwcompiler and mwinterpreter

pull/7/head
athile 15 years ago
parent 7cc27d9b66
commit 9b2fa58b88

@ -228,19 +228,11 @@ endif (APPLE)
# Tools # Tools
option(BUILD_MWCOMPILER "build standalone Morrowind script compiler" ON) option(BUILD_MWCOMPILER "build standalone Morrowind script compiler" ON)
if (BUILD_MWCOMPILER) if (BUILD_MWCOMPILER)
set(TOOLS_MWCOMPILER ${COMPILER} apps/mwcompiler/main.cpp apps/mwcompiler/context.cpp add_subdirectory( apps/mwcompiler )
apps/mwcompiler/context.hpp)
add_executable(mwcompiler ${TOOLS_MWCOMPILER})
endif() endif()
option(BUILD_MWINTERPRETER "build standalone Morrowind script code interpreter" ON) option(BUILD_MWINTERPRETER "build standalone Morrowind script code interpreter" ON)
if (BUILD_MWINTERPRETER) if (BUILD_MWINTERPRETER)
set(TOOLS_MWINTERPRETER ${INTERPRETER} apps/mwinterpreter/main.cpp add_subdirectory( apps/mwinterpreter )
apps/mwinterpreter/context.cpp apps/mwinterpreter/context.hpp)
add_executable(mwinterpreter ${TOOLS_MWINTERPRETER})
endif() endif()

@ -0,0 +1,9 @@
project(MWCompiler)
set(TOOLS_MWCOMPILER ${COMPILER}
main.cpp
context.cpp
context.hpp)
add_executable(mwcompiler ${TOOLS_MWCOMPILER})

@ -0,0 +1,9 @@
project(MWInterpreter)
set(TOOLS_MWINTERPRETER
${INTERPRETER}
main.cpp
context.cpp
context.hpp)
add_executable(mwinterpreter ${TOOLS_MWINTERPRETER})
Loading…
Cancel
Save