summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-10-24 23:00:24 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-10-24 23:02:46 +0200
commita49113ae68a82cf266ab465c0559ef7867467bdb (patch)
treec9fe821b1b00338f3c2ad187d0b8fd216ee69fee /CMakeLists.txt
parentee5f1b4cf2b82af47cc55af1334c866bf14945fa (diff)
downloadneetdraw-a49113ae68a82cf266ab465c0559ef7867467bdb.tar.gz
neetdraw-a49113ae68a82cf266ab465c0559ef7867467bdb.tar.xz
neetdraw-a49113ae68a82cf266ab465c0559ef7867467bdb.zip
Use PROJECT_* instead of CMAKE_CURRENT_*
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 214e326..458d382 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,15 +47,14 @@ CHECK_FUNCTION_EXISTS ("resizeterm" HAVE_RESIZETERM)
# Project source files
set (project_sources ${PROJECT_NAME}.c)
-set (project_headers ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+set (project_headers ${PROJECT_BINARY_DIR}/config.h)
# Project libraries
set (project_libraries ${dependencies_LIBRARIES} termo-static)
# Generate a configuration file
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
- ${CMAKE_CURRENT_BINARY_DIR}/config.h)
-include_directories (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
+configure_file (${PROJECT_SOURCE_DIR}/config.h.in ${PROJECT_BINARY_DIR}/config.h)
+include_directories (${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR})
# Build the main executable and link it
add_executable (${PROJECT_NAME} ${project_sources} ${project_headers})
@@ -70,7 +69,7 @@ install (FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR})
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Terminal drawing application")
set (CPACK_PACKAGE_VENDOR "Premysl Janouch")
set (CPACK_PACKAGE_CONTACT "Přemysl Janouch <p.janouch@gmail.com>")
-set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
+set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
set (CPACK_PACKAGE_VERSION_MAJOR ${project_VERSION_MAJOR})
set (CPACK_PACKAGE_VERSION_MINOR ${project_VERSION_MINOR})
set (CPACK_PACKAGE_VERSION_PATCH ${project_VERSION_PATCH})