First version - it works

This commit is contained in:
2021-04-21 21:59:17 -04:00
parent 74aa5e851b
commit 3d22a8a73c
13 changed files with 540 additions and 12 deletions

View File

@@ -1,8 +1,8 @@
cmake_minimum_required (VERSION 2.8.12)
project (mazemaker)
set(CMAKE_C_FLAGS "-Wall -O2 -g")
set (VERSION_MAJOR 0)
set (VERSION_MINOR 1)
set (VERSION_MAJOR 1)
set (VERSION_MINOR 0)
configure_file (
"${PROJECT_SOURCE_DIR}/config.h.in"
@@ -12,6 +12,7 @@ configure_file (
find_package(PkgConfig REQUIRED)
pkg_search_module(POPT REQUIRED popt)
pkg_search_module(PNG REQUIRED libpng)
include_directories("${PROJECT_BINARY_DIR}")
@@ -20,10 +21,10 @@ file(GLOB_RECURSE SOURCES src/*.c src/*.h)
add_executable (mazemaker ${SOURCES})
install (TARGETS mazemaker DESTINATION bin)
target_link_libraries(mazemaker PUBLIC ${POPT_LIBRARIES})
target_include_directories(mazemaker PUBLIC ${POPT_INCLUDE_DIRS})
target_compile_options(mazemaker PUBLIC ${POPT_CFLAGS_OTHER})
target_link_options(mazemaker PUBLIC -L${POPT_LIBDIR})
target_link_libraries(mazemaker PUBLIC ${POPT_LIBRARIES} ${PNG_LIBRARIES} m)
target_include_directories(mazemaker PUBLIC ${POPT_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS})
target_compile_options(mazemaker PUBLIC ${POPT_CFLAGS_OTHER} ${PNG_CFLAGS_OTHER})
target_link_options(mazemaker PUBLIC -L${POPT_LIBDIR} -L${PNG_LIBDIR})
set(
CPACK_SOURCE_PACKAGE_FILE_NAME