Skip to content

Commit 986cdb4

Browse files
committed
Basic packaging enabled
1 parent 43c8de0 commit 986cdb4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ include(${_project_options_SOURCE_DIR}/Index.cmake)
3131
# run_vcpkg()
3232

3333
# Set the project name and language
34-
project(myproject LANGUAGES CXX C)
34+
project(json2cpp VERSION 0.0.1 DESCRIPTION "Compiles JSON files into `static constexpr` C++ files" LANGUAGES CXX C)
3535

3636
if(GENERATOR_IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE)
3737
# Make sure that all supported configuration types have their
@@ -110,3 +110,5 @@ endif()
110110

111111
# set the startup project for the "play" button in MSVC
112112
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT json2cpp)
113+
114+
include(CPack)

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ target_link_libraries(
1414
fmt::fmt
1515
spdlog::spdlog
1616
nlohmann_json::nlohmann_json)
17+
install(TARGETS json2cpp)
18+
install(DIRECTORY ../include DESTINATION .)
1719

1820
if(ENABLE_LARGE_TESTS)
1921
set(BASE_NAME "${CMAKE_CURRENT_BINARY_DIR}/schema")

0 commit comments

Comments
 (0)