jak-project/goalc/CMakeLists.txt
water111 de5aa7e5e4
Move duplicated utilities to the common util folder and remove NEXT_DIR (#29)
* move things to the common library and remove next_dir

* fix for windows

* one last windows fix

* last fix for real this time

* debug listener test

* fix listener threading bug
2020-09-10 20:03:31 -04:00

37 lines
1,009 B
CMake

add_subdirectory(goos)
add_subdirectory(listener)
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/CodeGenerator.cpp
compiler/compilation/Atoms.cpp
compiler/compilation/CompilerControl.cpp
compiler/compilation/Block.cpp
compiler/compilation/Macro.cpp
compiler/compilation/Define.cpp
compiler/Util.cpp
logger/Logger.cpp
regalloc/IRegister.cpp
regalloc/Allocator.cpp
regalloc/allocate.cpp
compiler/Compiler.cpp)
add_executable(goalc main.cpp)
IF (WIN32)
target_link_libraries(compiler goos type_system listener mman common_util)
ELSE ()
target_link_libraries(compiler goos type_system listener common_util)
ENDIF ()
target_link_libraries(goalc goos compiler type_system)