Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
HashHound committed Jul 9, 2024
1 parent c32f38c commit e495ca7
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
cmake_minimum_required(VERSION 2.8.6)

set(VERSION "0.1")

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_CONFIGURATION_TYPES Debug RelWithDebInfo Release CACHE TYPE INTERNAL)
set(CMAKE_SKIP_INSTALL_RULES ON)
set(CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY ON)
set(CMAKE_SUPPRESS_REGENERATION ON)
enable_testing()

configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR})

project(dogemone)

include_directories(include src external "${CMAKE_BINARY_DIR}/version")
include_directories(include src external "${CMAKE_BINARY_DIR}/version" ${CMAKE_SOURCE_DIR}/boost/include)
link_directories(${CMAKE_SOURCE_DIR}/boost/lib)

if(APPLE)
include_directories(SYSTEM /usr/include/malloc)
enable_language(ASM)
endif()

if(MSVC)
include_directories(src/Platform/Windows)
include_directories(src/Platform/Windows)
elseif(APPLE)
include_directories(src/Platform/OSX)
include_directories(src/Platform/OSX)
else()
include_directories(src/Platform/Linux)
include_directories(src/Platform/Linux)
endif()

set(STATIC ${MSVC} CACHE BOOL "Link libraries statically")
Expand Down Expand Up @@ -139,3 +141,19 @@ endif()
add_subdirectory(external)
add_subdirectory(src)
add_subdirectory(tests)

# CPack configuration
include(CPack)
set(CPACK_PACKAGE_NAME "Dogemone")
set(CPACK_PACKAGE_VERSION "0.1")
set(CPACK_PACKAGE_CONTACT "[email protected]")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Dogemone Privacy Coin")
set(CPACK_PACKAGE_VENDOR "Your Company")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Dogemone")
set(CPACK_PACKAGE_FILE_NAME "Dogemone-0.1-Linux")
set(CPACK_SOURCE_GENERATOR "TGZ")

# Define the packaging components
install(DIRECTORY boost/include/ DESTINATION include)
install(DIRECTORY boost/lib/ DESTINATION lib)
install(TARGETS dogemoned DESTINATION bin)

0 comments on commit e495ca7

Please sign in to comment.