rename to libikarus and remove default cmake prefix
This commit is contained in:
parent
71964229e7
commit
f0ad11f9ae
1 changed files with 8 additions and 7 deletions
|
|
@ -12,13 +12,14 @@ add_subdirectory(src)
|
||||||
find_package(Boost CONFIG COMPONENTS system filesystem REQUIRED)
|
find_package(Boost CONFIG COMPONENTS system filesystem REQUIRED)
|
||||||
|
|
||||||
add_library(
|
add_library(
|
||||||
ikarus SHARED
|
libikarus SHARED
|
||||||
${INCLUDE_FILES}
|
${INCLUDE_FILES}
|
||||||
${SOURCE_FILES}
|
${SOURCE_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(
|
set_target_properties(
|
||||||
ikarus PROPERTIES
|
libikarus PROPERTIES
|
||||||
|
PREFIX ""
|
||||||
CXX_STANDARD 23
|
CXX_STANDARD 23
|
||||||
CXX_STANDARD_REQUIRED ON
|
CXX_STANDARD_REQUIRED ON
|
||||||
LINKER_LANGUAGE CXX
|
LINKER_LANGUAGE CXX
|
||||||
|
|
@ -26,7 +27,7 @@ set_target_properties(
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
ikarus
|
libikarus
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${CMAKE_CURRENT_LIST_DIR}/include
|
${CMAKE_CURRENT_LIST_DIR}/include
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
|
@ -35,7 +36,7 @@ target_include_directories(
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
ikarus PRIVATE
|
libikarus PRIVATE
|
||||||
cppbase
|
cppbase
|
||||||
sqlitecpp
|
sqlitecpp
|
||||||
nlohmann_json::nlohmann_json
|
nlohmann_json::nlohmann_json
|
||||||
|
|
@ -46,9 +47,9 @@ if (LIBIKARUS_ENABLE_LINTS)
|
||||||
find_program(IWYU_PATH NAMES include-what-you-use iwyu REQUIRED)
|
find_program(IWYU_PATH NAMES include-what-you-use iwyu REQUIRED)
|
||||||
find_program(CLANG_TIDY_PATH NAMES clang-tidy REQUIRED)
|
find_program(CLANG_TIDY_PATH NAMES clang-tidy REQUIRED)
|
||||||
|
|
||||||
set_property(TARGET ikarus PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
|
set_property(TARGET libikarus PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
|
||||||
set_property(
|
set_property(
|
||||||
TARGET ikarus
|
TARGET libikarus
|
||||||
PROPERTY CXX_CLANG_TIDY ${CLANG_TIDY_PATH};
|
PROPERTY CXX_CLANG_TIDY ${CLANG_TIDY_PATH};
|
||||||
)
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
@ -64,7 +65,7 @@ if (LIBIKARUS_BUILD_DOCS)
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(
|
add_dependencies(
|
||||||
ikarus
|
libikarus
|
||||||
libikarus_docs
|
libikarus_docs
|
||||||
)
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue