-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to CMake #35
base: main
Are you sure you want to change the base?
Switch to CMake #35
Changes from 4 commits
c809bee
074f0df
7be76b6
6648d1d
7660b48
c5e9300
4a8a995
2c9b078
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Top level CMake file | ||
|
||
# Set the minimum version of CMake required to run properly | ||
cmake_minimum_required(VERSION 3.0.0) | ||
|
||
# Set the project name | ||
project(ALARA VERSION 2.7.1) | ||
|
||
# Add all subdirectories | ||
# add_subdirectory(data) | ||
# add_subdirectory(developer-info) | ||
# add_subdirectory(doc) | ||
# add_subdirectory(sample) | ||
add_subdirectory(src) | ||
# add_subdirectory(tools) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# src directory CMake file | ||
|
||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | ||
configure_file(version.h.in "${CMAKE_CURRENT_SOURCE_DIR}/config.h") | ||
|
||
FILE(GLOB h_files "${CMAKE_CURRENT_SOURCE_DIR}/*.h") | ||
FILE(GLOB c_files "${CMAKE_CURRENT_SOURCE_DIR}/*.C") | ||
SET(SOURCE_FILES ${c_files}) | ||
|
||
# Add the Data Library | ||
add_subdirectory(DataLib) | ||
|
||
# Add all source files | ||
add_executable(alara ${SOURCE_FILES}) | ||
target_link_libraries(alara DataLib) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# CMake file in the DataLib direcotry within the src directory | ||
|
||
FILE(GLOB h_files "${CMAKE_CURRENT_SOURCE_DIR}/*.h") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure that you need |
||
FILE(GLOB c_files "${CMAKE_CURRENT_SOURCE_DIR}/*.C") | ||
FILE(GLOB cpp_files "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp") | ||
SET(DATA_LIB_SOURCES ${c_files} ${cpp_files}) | ||
|
||
|
||
# Add the library | ||
add_library(DataLib SHARED ${DATA_LIB_SOURCES}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../alara.h |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* $Id: input.C,v 1.14 2007-12-20 22:03:56 wilsonp Exp $ */ | ||
#include "alara.h" | ||
#include "input_tokens.h" | ||
#include "dflt_datadir.h" | ||
//#include "dflt_datadir.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have we successfully figured out how to generate this file with CMake as we were doing with autotools? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we have put this info in |
||
#include <sys/types.h> | ||
#include <sys/stat.h> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#define VERSION "2.7.1" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#define VERSION "@ALARA_VERSION_MAJOR@.@ALARA_VERSION_MINOR@.@ALARA_VERSION_PATCH@" | ||
#define PACKAGE_STRING "ALARA " VERSION | ||
#define DFLT_XSDIR "$(xsdir)" | ||
#define DFLT_DATADIR "$(nonxsdir)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't use this variable, so probably don't need this line.