jak-project/goalc/CMakeLists.txt

45 lines
1.4 KiB
CMake
Raw Normal View History

add_library(compiler
SHARED
emitter/CodeTester.cpp
emitter/ObjectFileData.cpp
emitter/ObjectGenerator.cpp
emitter/Register.cpp
compiler/Compiler.cpp
compiler/Env.cpp
compiler/Val.cpp
compiler/IR.cpp
compiler/CompilerSettings.cpp
compiler/CodeGenerator.cpp
compiler/StaticObject.cpp
compiler/compilation/Atoms.cpp
compiler/compilation/CompilerControl.cpp
compiler/compilation/Block.cpp
2020-09-06 17:42:20 -04:00
compiler/compilation/Macro.cpp
compiler/compilation/Math.cpp
2020-09-07 13:28:16 -04:00
compiler/compilation/Define.cpp
compiler/compilation/Debug.cpp
compiler/compilation/Function.cpp
2020-09-13 17:34:02 -04:00
compiler/compilation/ControlFlow.cpp
compiler/compilation/Type.cpp
compiler/compilation/Static.cpp
compiler/Util.cpp
debugger/Debugger.cpp
logger/Logger.cpp
listener/Listener.cpp
regalloc/IRegister.cpp
regalloc/Allocator.cpp
regalloc/allocate.cpp
regalloc/allocate_common.cpp
compiler/Compiler.cpp)
2020-08-22 22:30:12 -04:00
2020-09-07 19:59:44 -04:00
add_executable(goalc main.cpp)
2020-08-22 22:30:12 -04:00
2020-08-26 22:23:16 -04:00
IF (WIN32)
target_link_libraries(compiler goos type_system mman common_util spdlog cross_os_debug cross_sockets)
ELSE ()
target_link_libraries(compiler goos type_system common_util spdlog cross_os_debug cross_sockets)
ENDIF ()
2020-08-26 22:23:16 -04:00
target_link_libraries(goalc goos compiler type_system)