Files
ivy/lang/CMakeLists.txt

16 lines
554 B
CMake
Raw Normal View History

2024-11-12 19:55:47 +00:00
file(GLOB_RECURSE lang_sources *.c *.h include/ivy/lang/*.h)
if (WIN32)
2024-12-16 20:57:30 +00:00
set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/lang.rc)
endif ()
2024-12-06 19:48:20 +00:00
if (IVY_STATIC)
add_library(ivy-lang STATIC ${lang_sources} ${rc_file})
2024-12-06 19:48:20 +00:00
else ()
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-11-06 10:38:32 +00:00
target_link_libraries(ivy-lang mie ivy-diag ivy-common Bluelib::Core Bluelib::Ds Bluelib::Term)
target_compile_definitions(ivy-lang PRIVATE IVY_EXPORT=1 IVY_STATIC=${IVY_STATIC})