mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Build: Migrated to external common lib
This commit is contained in:
parent
df6ef30fe3
commit
77f51a41bd
4 changed files with 75 additions and 88 deletions
|
@ -1,7 +1,6 @@
|
|||
cmake_minimum_required (VERSION 2.8)
|
||||
include_directories (${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/src/common
|
||||
${TIMEW_INCLUDE_DIRS})
|
||||
|
||||
set (timew_SRCS Grammar.cpp Grammar.h
|
||||
|
@ -11,14 +10,16 @@ set (timew_SRCS Grammar.cpp Grammar.h
|
|||
Rules.cpp Rules.h)
|
||||
|
||||
add_library (timew STATIC ${timew_SRCS})
|
||||
include_directories(${CMAKE_INSTALL_PREFIX}/include)
|
||||
link_directories(${CMAKE_INSTALL_PREFIX}/lib)
|
||||
add_executable (timew_executable timew.cpp)
|
||||
add_executable (gr_executable gr.cpp)
|
||||
|
||||
target_link_libraries (timew_executable common timew ${TIMEW_LIBRARIES})
|
||||
target_link_libraries (gr_executable common timew ${TIMEW_LIBRARIES})
|
||||
target_link_libraries (timew_executable timew common ${TIMEW_LIBRARIES})
|
||||
target_link_libraries (gr_executable timew common ${TIMEW_LIBRARIES})
|
||||
|
||||
set_property (TARGET timew_executable PROPERTY OUTPUT_NAME "timew")
|
||||
set_property (TARGET gr_executable PROPERTY OUTPUT_NAME "gr")
|
||||
|
||||
install (TARGETS timew_executable DESTINATION ${TIMEW_BINDIR})
|
||||
install (TARGETS timew_executable DESTINATION bin)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue