Files
ivy/frontend/CMakeLists.txt

28 lines
530 B
CMake

string(TOLOWER ${CMAKE_SYSTEM_NAME} system_name)
file(GLOB ivy_sources
*.c *.h
cmd/*.c cmd/*.h
line-ed/*.c line-ed/*.h)
file(GLOB_RECURSE sys_sources
sys/${system_name}/*.c
sys/${system_name}/*.h)
if (WIN32)
set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/frontend.rc)
endif ()
add_executable(ivy ${ivy_sources} ${sys_sources} ${rc_file})
target_link_libraries(
ivy
ivy-vm
ivy-asm
ivy-lang
ivy-common
Bluelib::Core
Bluelib::Ds
Bluelib::Cmd)
target_compile_definitions(ivy PRIVATE IVY_STATIC=${IVY_STATIC})