aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorthecharlesblake2017-10-23 22:01:18 +0100
committerthecharlesblake2017-10-26 14:51:33 +0100
commite9693380d952552319b2cdd3f183e2e676676f95 (patch)
treeca02b06786c13e2680144079c9e2969e654ba1a2 /CMakeLists.txt
parentAdd simple black hole cmdline parse & err handling (diff)
downloadmetasol-e9693380d952552319b2cdd3f183e2e676676f95.tar.gz
metasol-e9693380d952552319b2cdd3f183e2e676676f95.zip

Add deal file parsing and verifying

Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 7 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 86d5232..d34c1e3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,10 +10,16 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
## source files ###############################################################
###############################################################################
-set(sources src/main/main.cpp src/main/command_line_helper.cpp src/main/command_line_helper.h src/main/log_helper.h)
+set(sources src/main/main.cpp src/main/command_line_helper.cpp src/main/command_line_helper.h src/main/log_helper.h src/main/card.h src/main/card.cpp src/main/deal_parser.cpp src/main/deal_parser.h)
set(sources_test src/test/main_test.cpp)
###############################################################################
+## Rapid JSON setup ###########################################################
+###############################################################################
+
+find_package(RapidJSON)
+
+###############################################################################
## Boost setup ################################################################
###############################################################################
@@ -91,10 +97,6 @@ target_include_directories(solvitaire PUBLIC src/main)
target_link_libraries(solvitaire LINK_PUBLIC ${Boost_LIBRARIES})
-# this copies all resource files in the build directory
-# we need this, because we want to work with paths relative to the executable
-file(COPY ${data} DESTINATION resources)
-
###############################################################################
## testing ####################################################################
###############################################################################
@@ -119,10 +121,6 @@ ADD_TEST(NAME unit_tests
# all install commands get the same destination. this allows us to use paths
# relative to the executable.
install(TARGETS solvitaire DESTINATION solvitaire)
-# this is basically a repeat of the file copy instruction that copies the
-# resources in the build directory, but here we tell cmake that we want it
-# in the package
-install(DIRECTORY resources DESTINATION solvitaire)
set(CPACK_OUTPUT_FILE_PREFIX installer)
set(CPACK_PACKAGE_VERSION "1.0.0")