Build: Added subdirectory with library for command functions

This commit is contained in:
Paul Beckingham 2016-03-01 00:29:36 -05:00
parent bbde660e54
commit fae763b5e8
2 changed files with 12 additions and 0 deletions

View file

@ -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)

View 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})