mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Build: Added subdirectory with library for command functions
This commit is contained in:
parent
bbde660e54
commit
fae763b5e8
2 changed files with 12 additions and 0 deletions
|
@ -49,6 +49,7 @@ ExternalProject_Add (common-1.0
|
|||
)
|
||||
|
||||
add_subdirectory (src)
|
||||
add_subdirectory (src/commands)
|
||||
add_subdirectory (doc)
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/test)
|
||||
add_subdirectory (test EXCLUDE_FROM_ALL)
|
||||
|
@ -66,5 +67,6 @@ set (CPACK_SOURCE_PACKAGE_FILE_NAME ${PACKAGE_NAME}-${PACKAGE_VERSION})
|
|||
set (CPACK_SOURCE_IGNORE_FILES "CMakeCache" "CMakeFiles" "CPackConfig" "CPackSourceConfig"
|
||||
"_CPack_Packages" "cmake_install" "install_manifest" "Makefile$"
|
||||
"test" "package-config" "src/timew$" "src/libtimew.a"
|
||||
"src/commands/libcommands.a"
|
||||
"/\\\\.gitignore" "/\\\\.git/" "swp$" "src/gr$")
|
||||
include (CPack)
|
||||
|
|
10
src/commands/CMakeLists.txt
Normal file
10
src/commands/CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
cmake_minimum_required (VERSION 2.8)
|
||||
include_directories (${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/src/commands
|
||||
${TIMEW_INCLUDE_DIRS})
|
||||
|
||||
set (commands_SRCS CmdHelp.cpp)
|
||||
|
||||
add_library (commands STATIC ${commands_SRCS})
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue