From 96059d32bdd5af0ba4996d99253ea6cafa5aeb67 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 15 Mar 2016 22:45:24 -0400 Subject: [PATCH] Build: Updated common to shared --- CMakeLists.txt | 4 ++-- ChangeLog | 2 +- src/CMakeLists.txt | 5 +++-- src/Grammar.cpp | 2 +- src/LR0.cpp | 2 +- src/commands/CMakeLists.txt | 1 + src/init.cpp | 2 +- src/timew.cpp | 2 +- test/CMakeLists.txt | 2 +- 9 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b81fd6af..407e0748 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,8 +42,8 @@ configure_file ( ${CMAKE_SOURCE_DIR}/cmake.h.in ${CMAKE_SOURCE_DIR}/cmake.h) -ExternalProject_Add (common-1.0 - GIT_REPOSITORY "ssh://git@git.tasktools.org/tm/common.git" +ExternalProject_Add (libshared + GIT_REPOSITORY "https://git.tasktools.org/scm/tm/libshared.git" GIT_TAG "master" #UPDATE_DISCONNECTED 1 # Needs 3.2 ) diff --git a/ChangeLog b/ChangeLog index 6af041ed..8621f49d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 1.0.0 () - -- Introduced the new common library +- Introduced the new shared library Design completed 2015-12-XX diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3fa397cc..6e4636c7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,6 +9,7 @@ set (timew_SRCS Database.cpp Database.h Grammar.cpp Grammar.h Interval.cpp Interval.h Lexer.cpp Lexer.h + Log.cpp Log.h LR0.cpp LR0.h Rules.cpp Rules.h init.cpp) @@ -19,8 +20,8 @@ link_directories(${CMAKE_INSTALL_PREFIX}/lib) add_executable (timew_executable timew.cpp) add_executable (gr_executable gr.cpp) -target_link_libraries (timew_executable timew commands common ${TIMEW_LIBRARIES}) -target_link_libraries (gr_executable timew common ${TIMEW_LIBRARIES}) +target_link_libraries (timew_executable timew commands shared ${TIMEW_LIBRARIES}) +target_link_libraries (gr_executable timew shared ${TIMEW_LIBRARIES}) set_property (TARGET timew_executable PROPERTY OUTPUT_NAME "timew") set_property (TARGET gr_executable PROPERTY OUTPUT_NAME "gr") diff --git a/src/Grammar.cpp b/src/Grammar.cpp index 683c7df2..63f7aebb 100644 --- a/src/Grammar.cpp +++ b/src/Grammar.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/LR0.cpp b/src/LR0.cpp index 2e66b274..8ec98da9 100644 --- a/src/LR0.cpp +++ b/src/LR0.cpp @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/commands/CMakeLists.txt b/src/commands/CMakeLists.txt index 4dc3c94b..3d94b113 100644 --- a/src/commands/CMakeLists.txt +++ b/src/commands/CMakeLists.txt @@ -3,6 +3,7 @@ include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/commands ${TIMEW_INCLUDE_DIRS}) +include_directories(${CMAKE_INSTALL_PREFIX}/include) set (commands_SRCS CmdClear.cpp CmdConfig.cpp diff --git a/src/init.cpp b/src/init.cpp index 2920be49..f4e6b289 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -31,7 +31,7 @@ #include //#include //#include -#include +#include #include #include #include diff --git a/src/timew.cpp b/src/timew.cpp index 3cf4622f..bd2d548e 100644 --- a/src/timew.cpp +++ b/src/timew.cpp @@ -30,7 +30,7 @@ #include #include //#include -#include +#include #include #include //#include diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 12fc15ac..15456323 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -18,7 +18,7 @@ add_custom_target (test ./run_all --verbose foreach (src_FILE ${test_SRCS}) add_executable (${src_FILE} "${src_FILE}.cpp" test.cpp) - target_link_libraries (${src_FILE} timew common ${TIMEW_LIBRARIES}) + target_link_libraries (${src_FILE} timew shared ${TIMEW_LIBRARIES}) endforeach (src_FILE) configure_file(run_all run_all COPYONLY)