mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CMake
- finalized unit tests transition to CMake - introduced 2 variables to collect inlcude dirs and libraries
This commit is contained in:
parent
3a599b66f5
commit
94224d0ac5
3 changed files with 110 additions and 7 deletions
|
@ -1,7 +1,5 @@
|
|||
include_directories (${CMAKE_SOURCE_DIR}/src
|
||||
${LUA_INCLUDE_DIR}
|
||||
${PTHREAD_INCLUDE_DIR}
|
||||
${READLINE_INCLUDE_DIR})
|
||||
${TASK_INCLUDE_DIRS})
|
||||
|
||||
set (task_SRCS API.cpp API.h Att.cpp Att.h Cmd.cpp Cmd.h Color.cpp Color.h
|
||||
Config.cpp Config.h Context.cpp Context.h Date.cpp Date.h
|
||||
|
@ -23,7 +21,7 @@ set (task_SRCS API.cpp API.h Att.cpp Att.h Cmd.cpp Cmd.h Color.cpp Color.h
|
|||
|
||||
add_library (task STATIC ${task_SRCS})
|
||||
add_executable (task_executable main.cpp)
|
||||
target_link_libraries (task_executable task ${LUA_LIBRARIES} ${PTHREAD_LIBRARY} ${READLINE_LIBRARY})
|
||||
target_link_libraries (task_executable task ${TASK_LIBRARIES})
|
||||
set_property (TARGET task_executable PROPERTY OUTPUT_NAME "task")
|
||||
|
||||
install (TARGETS task DESTINATION bin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue