libutil

C Utility Library
git clone http://git.omkov.net/libutil
Log | Tree | Refs | README | LICENCE | Download

AuthorJamozed <[email protected]>
Date2021-08-21 10:05:03
Commit69f58afb51f3598e719a004b12abd6459f7d1534
Parent2202ecc52be7bf39a6d5f4caddc0479e8a1ef7e6

meta: Update CMakeLists file

Diffstat

M CMakeLists.txt | 22 +++++++++++-----------

1 files changed, 11 insertions, 11 deletions

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 39f3c47..33abedb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,23 +1,23 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 3.12)
 PROJECT(lib LANGUAGES C)
 
-SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
-SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
+SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
+SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
 SET(CMAKE_STATIC_LIBRARY_PREFIX "")
 
-FILE(GLOB SOURCES ${PROJECT_SOURCE_DIR}/src/*)
+FILE(GLOB SRC ${CMAKE_SOURCE_DIR}/src/*)
 
-ADD_LIBRARY(lib STATIC ${SOURCES})
+ADD_LIBRARY(lib STATIC ${SRC})
 
 LINK_LIBRARIES(lib)
 
-ADD_EXECUTABLE(test_base32 ${PROJECT_SOURCE_DIR}/src/test/test_base32.c)
-ADD_EXECUTABLE(test_base64 ${PROJECT_SOURCE_DIR}/src/test/test_base64.c)
-ADD_EXECUTABLE(test_crypt  ${PROJECT_SOURCE_DIR}/src/test/test_crypt.c)
-ADD_EXECUTABLE(test_endian ${PROJECT_SOURCE_DIR}/src/test/test_endian.c)
-ADD_EXECUTABLE(test_error  ${PROJECT_SOURCE_DIR}/src/test/test_error.c)
-ADD_EXECUTABLE(test_optget ${PROJECT_SOURCE_DIR}/src/test/test_optget.c)
-ADD_EXECUTABLE(test_strtou ${PROJECT_SOURCE_DIR}/src/test/test_strtou.c)
+ADD_EXECUTABLE(test_base32 ${CMAKE_SOURCE_DIR}/src/test/test_base32.c)
+ADD_EXECUTABLE(test_base64 ${CMAKE_SOURCE_DIR}/src/test/test_base64.c)
+ADD_EXECUTABLE(test_crypt  ${CMAKE_SOURCE_DIR}/src/test/test_crypt.c)
+ADD_EXECUTABLE(test_endian ${CMAKE_SOURCE_DIR}/src/test/test_endian.c)
+ADD_EXECUTABLE(test_error  ${CMAKE_SOURCE_DIR}/src/test/test_error.c)
+ADD_EXECUTABLE(test_optget ${CMAKE_SOURCE_DIR}/src/test/test_optget.c)
+ADD_EXECUTABLE(test_strtou ${CMAKE_SOURCE_DIR}/src/test/test_strtou.c)
 
 ENABLE_TESTING()
 ADD_TEST(NAME test_base32 COMMAND test_base32)