Commit 3d91e97a authored by Jan Oliver Oelerich's avatar Jan Oliver Oelerich

Fixed some CMake things

parent 6cc03766
......@@ -72,7 +72,6 @@ set(LIBS ${LIBS} ${MPI_LIBRARIES})
# compilation #############################################
# CFLAGS
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
set(CMAKE_CXX_FLAGS_RELEASE "-Ofast")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_PROFILE "-g")
......
......@@ -60,7 +60,7 @@ ELSE( NETCDF_ROOT )
ENDIF( NETCDF_ROOT )
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETCDF DEFAULT_MSG NETCDF_INCLUDE_DIR NETCDF_LIBRARY)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETCDF DEFAULT_MSG NETCDF_INCLUDE_DIR NETCDF_LIBRARIES)
MARK_AS_ADVANCED(
NETCDF_INCLUDE_DIR
......
......@@ -22,29 +22,37 @@
#SET(BUILD_SHARED_LIBS ON)
# compilation
add_library(stemsalabim_lib
classes/StructureFactors.hpp
classes/Crystal.cpp classes/Crystal.hpp
classes/Params.cpp classes/Params.hpp
classes/Simulation.cpp classes/Simulation.hpp
classes/IO.cpp classes/IO.hpp
classes/GridManager.cpp classes/GridManager.hpp
classes/FPConfManager.cpp classes/FPConfManager.hpp
classes/Slice.cpp classes/Slice.hpp
classes/Atom.hpp
classes/Element.hpp
classes/SimulationState.hpp
utilities/Wave.hpp
utilities/elements_json.hpp
utilities/mpi.hpp
utilities/memory.hpp
utilities/output.hpp
utilities/algorithms.hpp
utilities/TaskQueue.hpp
utilities/http.hpp
3rdparty/jsoncpp/jsoncpp.cpp
3rdparty/jsoncpp/json/json.h
3rdparty/jsoncpp/json/json-forwards.h)
set(INTERNAL_FILES
classes/StructureFactors.hpp
classes/Crystal.cpp classes/Crystal.hpp
classes/Params.cpp classes/Params.hpp
classes/Simulation.cpp classes/Simulation.hpp
classes/IO.cpp classes/IO.hpp
classes/GridManager.cpp classes/GridManager.hpp
classes/FPConfManager.cpp classes/FPConfManager.hpp
classes/Slice.cpp classes/Slice.hpp
classes/Atom.hpp
classes/Element.hpp
classes/SimulationState.hpp
utilities/Wave.hpp
utilities/elements_json.hpp
utilities/mpi.hpp
utilities/memory.hpp
utilities/output.hpp
utilities/algorithms.hpp
utilities/TaskQueue.hpp
utilities/http.hpp)
set(EXTERNAL_FILES
3rdparty/jsoncpp/jsoncpp.cpp
3rdparty/jsoncpp/json/json.h
3rdparty/jsoncpp/json/json-forwards.h)
set_source_files_properties(${INTERNAL_FILES}
PROPERTIES COMPILE_FLAGS "-Wall -Wextra -pedantic")
add_library(stemsalabim_lib ${INTERNAL_FILES} ${EXTERNAL_FILES})
add_executable(stemsalabim stemsalabim.cpp)
add_executable(ssb-chk ssb-chk.cpp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment