Browse Source

Switch do cmake as builder system

Godzil 7 years ago
parent
commit
e7048853fb
2 changed files with 16 additions and 0 deletions
  1. 3 0
      .gitignore
  2. 13 0
      CMakeLists.txt

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+build/
+*.o
+*~

+ 13 - 0
CMakeLists.txt

@@ -0,0 +1,13 @@
+cmake_minimum_required (VERSION 3.0)
+
+project (lpstyl)
+
+option(BUILD_ATALK "Build AppleTalk support" OFF)
+
+if (BUILD_ATALK)
+ find_library(LIB_ATALK atalk)
+ add_definition(-DATALK=1)
+endif()
+
+add_executable(lpstyl lpstyl.c adsp.c)
+target_link_libraries(lpstyl ${LIB_ATALK})