Commit 651adae3 authored by François Grisez's avatar François Grisez

Fix build with CMake

parent ca8908ec
......@@ -26,12 +26,13 @@ project(CUNIT C)
set(PACKAGE "CUnit")
set(PACKAGE_NAME "${PACKAGE}")
set(PACKAGE_VERSION "2.1-2")
set(VERSION "2.1")
set(RELEASE "2")
set(PACKAGE_VERSION "${VERSION}-${RELEASE}")
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
set(PACKAGE_BUGREPORT "")
set(PACKAGE_TARNAME "cunit")
set(PACKAGE_URL "")
set(VERSION "${PACKAGE_VERSION}")
option(ENABLE_AUTOMATED "Compile CUnit automated interface" ON)
......@@ -78,6 +79,7 @@ endif()
include_directories(
CUnit/Headers
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/CUnit/Headers
)
......
......@@ -24,7 +24,7 @@ set(AUTOMATED_INCLUDES Automated.h)
set(BASIC_INCLUDES Basic.h)
set(CONSOLE_INCLUDES Console.h)
set(CURSES_INCLUDES CUCurses.h)
set(FRAMEWORK_INCLUDES CUError.h CUnit.h CUnit_intl.h MyMem.h TestDB.h TestRun.h Util.h)
set(FRAMEWORK_INCLUDES CUError.h CUnit_intl.h MyMem.h TestDB.h TestRun.h Util.h)
set(HEADER_FILES ${FRAMEWORK_INCLUDES})
......@@ -44,7 +44,9 @@ if(ENABLE_CURSES)
list(APPEND HEADER_FILES ${CURSES_INCLUDES})
endif()
install(FILES ${HEADER_FILES}
configure_file(CUnit.h.in CUnit.h @ONLY)
install(FILES ${HEADER_FILES} ${CMAKE_CURRENT_BINARY_DIR}/CUnit.h
DESTINATION include/CUnit
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment