forked from teamnwah/openmw-tes3coop
Add separate CMakeLists.txt files for mwcompiler and mwinterpreter
This commit is contained in:
parent
7cc27d9b66
commit
9b2fa58b88
3 changed files with 20 additions and 10 deletions
|
@ -228,19 +228,11 @@ endif (APPLE)
|
|||
|
||||
# Tools
|
||||
option(BUILD_MWCOMPILER "build standalone Morrowind script compiler" ON)
|
||||
|
||||
if (BUILD_MWCOMPILER)
|
||||
set(TOOLS_MWCOMPILER ${COMPILER} apps/mwcompiler/main.cpp apps/mwcompiler/context.cpp
|
||||
apps/mwcompiler/context.hpp)
|
||||
|
||||
add_executable(mwcompiler ${TOOLS_MWCOMPILER})
|
||||
add_subdirectory( apps/mwcompiler )
|
||||
endif()
|
||||
|
||||
option(BUILD_MWINTERPRETER "build standalone Morrowind script code interpreter" ON)
|
||||
|
||||
if (BUILD_MWINTERPRETER)
|
||||
set(TOOLS_MWINTERPRETER ${INTERPRETER} apps/mwinterpreter/main.cpp
|
||||
apps/mwinterpreter/context.cpp apps/mwinterpreter/context.hpp)
|
||||
|
||||
add_executable(mwinterpreter ${TOOLS_MWINTERPRETER})
|
||||
add_subdirectory( apps/mwinterpreter )
|
||||
endif()
|
||||
|
|
9
apps/mwcompiler/CMakeLists.txt
Normal file
9
apps/mwcompiler/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
project(MWCompiler)
|
||||
|
||||
set(TOOLS_MWCOMPILER ${COMPILER}
|
||||
main.cpp
|
||||
context.cpp
|
||||
context.hpp)
|
||||
|
||||
add_executable(mwcompiler ${TOOLS_MWCOMPILER})
|
||||
|
9
apps/mwinterpreter/CMakeLists.txt
Normal file
9
apps/mwinterpreter/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
project(MWInterpreter)
|
||||
|
||||
set(TOOLS_MWINTERPRETER
|
||||
${INTERPRETER}
|
||||
main.cpp
|
||||
context.cpp
|
||||
context.hpp)
|
||||
|
||||
add_executable(mwinterpreter ${TOOLS_MWINTERPRETER})
|
Loading…
Reference in a new issue