File tree Expand file tree Collapse file tree 3 files changed +537
-0
lines changed
libs/internal/include/internal Expand file tree Collapse file tree 3 files changed +537
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ find_package(GLIBMM REQUIRED)
4141# GMPXX
4242find_package (GMPXX REQUIRED)
4343
44+ # Dependency of TinyProcessLib
45+ find_package (Threads)
46+
4447#---------------------------------------------------------------------------
4548# Enumerate input files and directories.
4649#---------------------------------------------------------------------------
@@ -310,6 +313,19 @@ target_compile_definitions(cadabra2-cli PRIVATE CDBPYTHON_NO_NOTEBOOK)
310313target_include_directories (cadabra2-cli PRIVATE ${PYTHON_INCLUDE_DIRS} )
311314target_link_libraries (cadabra2-cli PRIVATE ${PYTHON_LIBRARIES} ${GLIBMM3_LIBRARIES} )
312315
316+ # Notebook diff tool
317+ add_executable (cdb-nbtool
318+ cdb-nbtool.cc
319+ ${CADABRA_LIBS_DIR} /tiny-process-library/process.cpp
320+ )
321+ if (MSVC )
322+ target_sources (cdb-nbtool PRIVATE ${CADABRA_LIBS_DIR} /tiny-process-library/process_win.cpp)
323+ else ()
324+ target_sources (cdb-nbtool PRIVATE ${CADABRA_LIBS_DIR} /tiny-process-library/process_unix.cpp)
325+ target_link_libraries (cdb-nbtool PRIVATE Threads::Threads)
326+ endif ()
327+ target_include_directories (cdb-nbtool PRIVATE ${CADABRA_LIBS_DIR} /tiny-process-library)
328+
313329# Test preprocessor executable
314330add_executable (test_preprocessor
315331 test_preprocessor.cc
@@ -416,6 +432,7 @@ else()
416432endif ()
417433
418434install (TARGETS cadabra2-cli DESTINATION bin)
435+ install (TARGETS cdb-nbtool DESTINATION bin)
419436
420437install (
421438 FILES
You can’t perform that action at this time.
0 commit comments