2026-06-19 01:31:17 +09:00
|
|
|
cmake_minimum_required(VERSION 3.11)
|
|
|
|
|
|
2026-06-20 02:12:04 +09:00
|
|
|
project(sj4)
|
2026-06-19 01:31:17 +09:00
|
|
|
|
2026-06-20 02:12:04 +09:00
|
|
|
file(GLOB_RECURSE SJ4CORE_SRCS lib/sj4core/**.c)
|
|
|
|
|
add_library(sj4core STATIC ${SJ4CORE_SRCS})
|
|
|
|
|
target_include_directories(sj4core PUBLIC include/sj4common include/sj4core)
|
|
|
|
|
target_include_directories(sj4core PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
2026-06-19 01:47:46 +09:00
|
|
|
|
2026-06-20 02:12:04 +09:00
|
|
|
#file(GLOB_RECURSE SJ4RKCV_SRCS lib/sj4rkcv/**.c)
|
|
|
|
|
#add_library(sj4rkcv STATIC ${SJ4RKCV_SRCS})
|
|
|
|
|
#target_include_directories(sj4rkcv PUBLIC include/sj4common include/sj4rkcv)
|
|
|
|
|
#target_include_directories(sj4rkcv PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
2026-06-19 19:07:01 +09:00
|
|
|
|
2026-06-20 02:12:04 +09:00
|
|
|
file(GLOB_RECURSE SJ4MKDIC_SRCS src/sj4mkdic/**.c)
|
|
|
|
|
add_executable(sj4mkdic ${SJ4MKDIC_SRCS})
|
|
|
|
|
target_include_directories(sj4mkdic PRIVATE include/sj4common include/sj4core)
|
2026-06-19 06:25:17 +09:00
|
|
|
|
2026-06-20 02:12:04 +09:00
|
|
|
file(GLOB_RECURSE SJ4TEST_SRCS src/sj4test/**.c)
|
|
|
|
|
add_executable(sj4test ${SJ4TEST_SRCS})
|
|
|
|
|
target_link_libraries(sj4test PRIVATE sj4core)
|
2026-06-19 18:21:53 +09:00
|
|
|
|
2026-06-20 02:12:04 +09:00
|
|
|
#target_compile_definitions(sj4core PUBLIC SJ4_GLOBAL)
|
2026-06-19 23:45:47 +09:00
|
|
|
|
2026-06-20 02:12:04 +09:00
|
|
|
target_compile_definitions(sj4mkdic PRIVATE UTF8 ENGLISH)
|