config cmake
This commit is contained in:
parent
45a9cb88e0
commit
7ebb8f405b
5 changed files with 21 additions and 40 deletions
|
|
@ -1,36 +1,9 @@
|
|||
######################################################################################
|
||||
### 1) Include useful packages
|
||||
### 1) Set all needed source files for the project
|
||||
######################################################################################
|
||||
|
||||
#FIND_PACKAGE(Boost 1.33.0 REQUIRED)
|
||||
|
||||
######################################################################################
|
||||
|
||||
|
||||
######################################################################################
|
||||
### 2) Include the sources
|
||||
######################################################################################
|
||||
|
||||
#INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
|
||||
|
||||
######################################################################################
|
||||
|
||||
|
||||
######################################################################################
|
||||
### 3) Define your target(s)
|
||||
######################################################################################
|
||||
|
||||
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
|
||||
|
||||
FILE(GLOB SOURCES *.cpp)
|
||||
|
||||
SET(SAMPLE_SRCS ${SOURCES} PARENT_SCOPE)
|
||||
|
||||
ADD_LIBRARY(${PROJECT_NAME} STATIC ${SAMPLE_SRCS})
|
||||
|
||||
# INSTALL(
|
||||
# TARGETS ${LIBRARY_OUTPUT_PATH}/lib${PROJECT_NAME}.a
|
||||
# DESTINATION lib
|
||||
# COMPONENT libraries
|
||||
# )
|
||||
|
||||
######################################################################################
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef _doStats_h
|
||||
#define _doStats_h
|
||||
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -119,3 +122,5 @@ class CovMatrix {
|
|||
double get_cov(int i, int j) const { return sumcov[i][j] / (n-1); }
|
||||
|
||||
};
|
||||
|
||||
#endif // !_doStats_h
|
||||
|
|
|
|||
4
src/test.cpp
Normal file
4
src/test.cpp
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
namespace DO
|
||||
{
|
||||
void test(){}
|
||||
}
|
||||
Reference in a new issue