pineapple-notepad/3rdparty/lexilla540/CMakeLists.txt

32 lines
826 B
CMake

# 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
${CMAKE_CURRENT_SOURCE_DIR}/../scintilla552/scintilla/include
)