Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions source/compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
project(pawnc C)
cmake_minimum_required(VERSION 2.8)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

set(sNAMEMAX 31 CACHE INT "The maximum length of function/symbol names")
set(PAWN_CELL_SIZE 32 CACHE INT "The number of bits in a cell")

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake)

set(VERSION_MAJOR 3)
Expand Down Expand Up @@ -62,6 +67,8 @@ if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
endif()

add_definitions(-DsNAMEMAX=${sNAMEMAX} -DPAWN_CELL_SIZE=${PAWN_CELL_SIZE})

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
${CMAKE_CURRENT_BINARY_DIR}/version.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
Expand Down Expand Up @@ -174,6 +181,7 @@ if(BUILD_TESTING)
../amx/amxaux.h
../amx/amxcons.c
../amx/amxcore.c
../amx/amxstring.c
)
if(UNIX)
set(PAWNRUNS_SRCS
Expand Down