2024-11-12 19:55:47 +00:00
|
|
|
file(GLOB_RECURSE lang_sources *.c *.h include/ivy/lang/*.h)
|
|
|
|
|
|
2024-12-07 19:32:35 +00:00
|
|
|
if (WIN32)
|
2024-12-16 20:57:30 +00:00
|
|
|
set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/lang.rc)
|
2024-12-07 19:32:35 +00:00
|
|
|
endif ()
|
|
|
|
|
|
2024-12-06 19:48:20 +00:00
|
|
|
if (IVY_STATIC)
|
2024-12-07 19:32:35 +00:00
|
|
|
add_library(ivy-lang STATIC ${lang_sources} ${rc_file})
|
2024-12-06 19:48:20 +00:00
|
|
|
else ()
|
2024-12-07 19:32:35 +00:00
|
|
|
add_library(ivy-lang SHARED ${lang_sources} ${rc_file})
|
2024-12-06 19:48:20 +00:00
|
|
|
endif ()
|
|
|
|
|
|
2024-11-12 19:55:47 +00:00
|
|
|
target_include_directories(ivy-lang PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
2025-04-14 09:48:16 +01:00
|
|
|
target_link_libraries(ivy-lang mie ivy-common Bluelib::Core Bluelib::Object Bluelib::Term)
|
|
|
|
|
target_compile_definitions(ivy-lang PRIVATE IVY_EXPORT=1 IVY_STATIC=${IVY_STATIC})
|