acc is now built with cmake instead of the old build script. This was mainly done to fix compilation on Puhti where I had problems linking flex even though it is available. As an added bonus the code is now safer to build since all dependencies are now rigorously tracked by cmake and make, and f.ex. change in the compiler now forces also the whole library to be rebuilt (which is the behaviour we want)
This commit is contained in:
12
acc/CMakeLists.txt
Normal file
12
acc/CMakeLists.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
## CMake settings
|
||||
cmake_minimum_required (VERSION 3.5.1)
|
||||
find_program(CMAKE_C_COMPILER NAMES $ENV{CC} gcc PATHS ENV PATH NO_DEFAULT_PATH)
|
||||
|
||||
## Project settings
|
||||
project(acc C)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
|
||||
|
||||
include_directories(src)
|
||||
add_subdirectory(src)
|
Reference in New Issue
Block a user