Files
ivy/frontend/CMakeLists.txt

28 lines
534 B
CMake
Raw Normal View History

string(TOLOWER ${CMAKE_SYSTEM_NAME} system_name)
2024-11-01 21:41:44 +00:00
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)
2025-05-09 14:01:41 +01:00
if (WIN32)
2024-12-16 20:57:30 +00:00
set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/frontend.rc)
endif ()
add_executable(ivy ${ivy_sources} ${sys_sources} ${rc_file})
2024-11-01 21:41:44 +00:00
target_link_libraries(
ivy
2025-05-09 14:01:41 +01:00
ivy-vm
ivy-asm
ivy-lang
ivy-common
2024-11-01 21:41:44 +00:00
Bluelib::Core
Bluelib::Object
Bluelib::Cmd)
2024-12-06 19:48:20 +00:00
2025-05-09 14:01:41 +01:00
target_compile_definitions(ivy PRIVATE IVY_STATIC=${IVY_STATIC})