Skip to content

Commit

Permalink
Update cmake files
Browse files Browse the repository at this point in the history
  • Loading branch information
agievich committed Jun 6, 2024
1 parent 820beb0 commit 1836455
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ if(NOT BIN_INSTALL_DIR)
set(BIN_INSTALL_DIR bin)
endif()

include_directories(include/)
include_directories(src/)
include_directories(include)
include_directories(src)

add_subdirectory(include)
add_subdirectory(src)
Expand Down
5 changes: 0 additions & 5 deletions cmd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if(MSVC)
# disable security warnings for fopen()
add_definitions(/D _CRT_SECURE_NO_WARNINGS)
endif()

add_executable(bee2cmd
bsum/bsum.c
core/cmd_arg.c
Expand Down
8 changes: 4 additions & 4 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
find_package(Doxygen)

if(NOT DOXYGEN_FOUND)
message(FATAL_ERROR
"Doxygen is needed to build the documentation.")
message(FATAL_ERROR "Doxygen is needed to build the documentation.")
endif()

set(doxyfile bee2.doxy)
Expand All @@ -12,9 +11,10 @@ add_custom_command(OUTPUT ${doxy_html_index_file}
COMMAND ${DOXYGEN_EXECUTABLE} ${doxyfile}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${doxyfile}
COMMENT "Generating HTML documentation")
COMMENT "Generating HTML documentation"
)

add_custom_target(doc ALL DEPENDS ${doxy_html_index_file})

install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/html/
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/html
DESTINATION share/bee2/doc)
4 changes: 1 addition & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ if(BUILD_SHARED_LIBS)
target_link_libraries(bee2)
endif()

set_target_properties(bee2 PROPERTIES
VERSION ${BEE2_VERSION_MAJOR}.${BEE2_VERSION_MINOR}.${BEE2_VERSION_PATCH}
SOVERSION 2.0)
set_target_properties(bee2 PROPERTIES VERSION ${BEE2_VERSION} SOVERSION 2.0)

install(TARGETS bee2
DESTINATION ${LIB_INSTALL_DIR}
Expand Down

0 comments on commit 1836455

Please sign in to comment.