Skip to content

Commit

Permalink
Update: 调整target的include方式 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
GengGode authored Mar 18, 2024
1 parent 7a4aa45 commit 21376c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
cmake_minimum_required(VERSION 3.14)
project(meojson CXX)

include_directories(./include)

option(BUILD_SAMPLE "Build sample in sample/sample.cpp" ON)
option(BUILD_BENCHMARK "Build benchmark in benchmark/benchmark.cpp" OFF)
option(ENABLE_NEON "Enable ARM NEON" OFF)
Expand All @@ -29,6 +27,7 @@ file(GLOB_RECURSE json_headers
)

add_library(meojson INTERFACE ${json_headers})
target_include_directories(meojson INTERFACE include)

if (BUILD_SAMPLE)
file(GLOB sample_src
Expand Down

0 comments on commit 21376c9

Please sign in to comment.