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) add_executable(ivy ${ivy_sources} ${sys_sources}) target_link_libraries( ivy ivy-rt ivy-asm ivy-lang ivy-common Bluelib::Core Bluelib::Object Bluelib::Cmd)