2024-07-02 23:47:26 +08:00
|
|
|
# this file is actually the CMake version of Lexilla.pro
|
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
|
|
|
project(lexilla)
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} SHARED)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
|
|
|
file(GLOB_RECURSE SRCS CONFIGURE_DEPENDS
|
|
|
|
# main library binding
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/lexilla/include/Lexilla.h"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/lexilla/src/Lexilla.cxx"
|
|
|
|
# lexlib
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/lexilla/lexlib/*.h"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/lexilla/lexlib/*.cxx"
|
|
|
|
# lexers
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/lexilla/lexers/Lex*.cxx"
|
|
|
|
)
|
|
|
|
|
|
|
|
target_sources(${PROJECT_NAME}
|
|
|
|
PRIVATE
|
|
|
|
${SRCS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lexilla/include
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lexilla/lexlib
|
2024-09-04 19:01:58 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../scintilla552/scintilla/include
|
2024-07-02 23:47:26 +08:00
|
|
|
)
|